Adjust exception types to match gerrit types

Change-Id: Id95e360b813b726397e3cdf9b99a2b11bcc138d1
diff --git a/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java b/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java
index 7a69a66..9d4c9b3 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemoteIT.java
@@ -28,7 +28,6 @@
 import com.google.gerrit.acceptance.RestResponse;
 import com.google.gerrit.acceptance.TestPlugin;
 import com.google.gson.reflect.TypeToken;
-import java.io.IOException;
 import java.util.HashMap;
 import java.util.Map;
 import org.eclipse.jgit.transport.RefSpec;
@@ -38,7 +37,7 @@
 public class GetRemoteIT extends LightweightPluginDaemonTest {
 
   @Test
-  public void noWebhooks() throws IOException {
+  public void noWebhooks() throws Exception {
     RestResponse response =
         adminRestSession.get(
             String.format("/config/server/webhooks~projects/%s/remotes/", project.get()));