DatabasePortalMetaServerProvider implements PortalMetaServerProvider { @Override public String getMetaServerAddress(Env targetEnv) { return addresses.get(targetEnv); } DatabasePortalMetaServerProvider(final PortalConfig portalConfig); @Override String getMetaServerAddress(Env targetEnv); @Override boolean exists(Env targetEnv); @Override void reload();  }
@Test public void testGetMetaServerAddress() { String address = databasePortalMetaServerProvider.getMetaServerAddress(Env.DEV); assertEquals("http: String newMetaServerAddress = "http: metaServiceMap.put("dev", newMetaServerAddress); databasePortalMetaServerProvider.reload(); assertEquals(newMetaServerAddress, databasePortalMetaServerProvider.getMetaServerAddress(Env.DEV)); }