ModuleRegistry { public RestUri getBaseUriForResource(String resource) { String module = getModuleForResource(resource); RestUri baseUriForModule = getBaseUriForModule(module); log.debug("getBaseUriForResource " + resource + ", module: " + module + ", baseUriForModule: " + baseUriForModule); if (baseUriForModule == null) { return null; } return baseUriForModule.slash(resource); }  RestUri getBaseUriForResource(String resource); RestUri getSearchUriForResource(String resource); RestUri getBaseUriForModule(String module); boolean isModuleRegistered(String module); void loadResources(); String getModuleForResource(String resource); static final String MODULE_POST_FIX; }
@Test public void testGetBaseUriForResource() throws Exception { String usersUri = moduleRegistry.getBaseUriForResource("users").getUri(); assertEquals("uri", "http: }