PluginUtils { public static String defaultURI(Service service) { var a = service.getClass() .getDeclaredAnnotation(RegisterPlugin.class); return a == null ? null : a.defaultURI() == null || "".equals(a.defaultURI()) ? "/".concat(a.name()) : a.defaultURI(); }  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 testDefaultUri() { var plugin = new TestPlugin(); assertEquals("/test", PluginUtils.defaultURI(plugin)); }
@Test public void testDefaultUriDefault() { var plugin = new TestPluginDefault(); assertEquals("/testDefaultPlugin", PluginUtils.defaultURI(plugin)); }