ModuleRegistry { public RestUri getBaseUriForModule(String module) { String property = environment.getProperty(module + ".baseUri"); if (property != null) { return new RestUri(property); } URI uri = getInstanceUri(module); if (uri != null) { return RestUri.from(uri).withoutPath(); } return null; }  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 testGetBaseUriForModule() throws Exception { String uri = moduleRegistry.getBaseUriForModule(ENVIRONMENT_MODULE).getUri(); assertEquals("uri", "http: }