ConfigService { public static Config getConfig(String namespace) { return s_instance.getManager().getConfig(namespace); }  static Config getAppConfig(); static Config getConfig(String namespace); static ConfigFile getConfigFile(String namespace, ConfigFileFormat configFileFormat);  }
@Test public void testMockConfigFactory() throws Exception { String someNamespace = "mock"; String someKey = "someKey"; MockInjector.setInstance(ConfigFactory.class, someNamespace, new MockConfigFactory()); Config config = ConfigService.getConfig(someNamespace); assertEquals(someNamespace + ":" + someKey, config.getProperty(someKey, null)); assertEquals(null, config.getProperty("unknown", null)); }