PluginUtils { public static InterceptPoint[] dontIntercept(Service service) { var a = service.getClass() .getDeclaredAnnotation(RegisterPlugin.class); if (a == null) { return new InterceptPoint[0]; } else { return a.dontIntercept(); } }  static InterceptPoint interceptPoint(Interceptor interceptor); static InitPoint initPoint(Initializer initializer); static boolean requiresContent(Interceptor interceptor); static String name(Plugin plugin); static String defaultURI(Service service); static String defaultURI(Class<P> serviceClass); static String actualUri(Map<String, Object> conf,
            Class<P> serviceClass); static InterceptPoint[] dontIntercept(Service service); static Service handlingService(PluginsRegistry registry,
            HttpServerExchange exchange); static InterceptPoint[] dontIntercept(PluginsRegistry registry,
            HttpServerExchange exchange); static PipelineInfo pipelineInfo(HttpServerExchange exchange); static Type cachedRequestType(ExchangeTypeResolver plugin); static Type cachedResponseType(ExchangeTypeResolver plugin);  }
@Test public void testDontInterceptDefault() { var plugin = new TestPluginDefault(); InterceptPoint[] expected = {}; assertArrayEquals(expected, PluginUtils.dontIntercept(plugin)); }
@Test public void testDontIntercept() { var plugin = new TestPlugin(); InterceptPoint[] expected = {InterceptPoint.REQUEST_AFTER_AUTH, InterceptPoint.RESPONSE}; assertArrayEquals(expected, PluginUtils.dontIntercept(plugin)); }