### Question:
RESTApiModule implements ServerModule { @Override public void start() { URI restApiUri = restApiUri( ); webServer.addFilter( new CollectUserAgentFilter( clientNames() ), "/*" ); webServer.addFilter( new CorsFilter( logProvider, config.get( http_access_control_allow_origin ) ), "/*" ); webServer.addJAXRSClasses( getClassNames(), restApiUri.toString(), null ); loadPlugins(); } RESTApiModule( WebServer webServer, Config config, Supplier<UsageData> userDataSupplier, LogProvider logProvider ); @Override void start(); @Override void stop(); PluginManager getPlugins();  }### Answer:
@Test public void shouldRegisterASingleUri() { WebServer webServer = mock( WebServer.class ); Map<String, String> params = new HashMap<>(); String path = "/db/data"; params.put( ServerSettings.rest_api_path.name(), path ); Config config = Config.defaults( params ); RESTApiModule module = new RESTApiModule( webServer, config, () -> new UsageData( mock( JobScheduler.class ) ), NullLogProvider.getInstance() ); module.start(); verify( webServer ).addJAXRSClasses( anyListOf( String.class ), anyString(), any() ); }