### Question:
AppConfigurationService { @PostConstruct public void loadConfig() throws IOException { loadConfig(FILENAME); }  @Produces AppConfiguration getAppConfiguration(); Properties getAppConfigurationProperties(); @PostConstruct void loadConfig(); static final String CONTRIBUTORPROFILE_PROVIDER_PASSWORD; static final String FILENAME; }### Answer:
@Test public void loadConfig() throws IOException { AppConfigurationService tested = new AppConfigurationService(); tested.log = Logger.getLogger("testlogger"); Assert.assertNull(tested.getAppConfiguration()); tested.loadConfig(); Assert.assertNotNull(tested.getAppConfiguration()); Assert.assertEquals(ClientType.EMBEDDED, tested.getAppConfiguration().getClientType()); Assert.assertEquals("/test/path", tested.getAppConfiguration().getAppDataPath()); Assert.assertEquals(true, tested.getAppConfiguration().isProviderCreateInitData()); tested.appConfiguration = null; tested.loadConfig("/app2.properties"); Assert.assertNotNull(tested.getAppConfiguration()); Assert.assertEquals(ClientType.TRANSPORT, tested.getAppConfiguration().getClientType()); Assert.assertEquals("/test/path/2", tested.getAppConfiguration().getAppDataPath()); Assert.assertEquals(false, tested.getAppConfiguration().isProviderCreateInitData()); tested.appConfiguration = null; try { tested.loadConfig("/app-unknown.properties"); Assert.fail("IOException expected"); } catch (IOException e) { } }