Environments { public UiConfigurationObject getUiConfig() { checkForUpdateAndUpdateInstances(); if (uiConfigurationObject == null) { uiConfigurationObject = new UiConfigurationObject(Environment.getInstance().getConfiguration()); } return uiConfigurationObject; } private  Environments(); static Environments getInstance(); UiConfigurationObject getUiConfig(); GitConfigurationObject getGitConfig(); RepositoryConfigurationObject getRepositoryConfig(); AccountabilityConfigurationObject getAccountabilityConfig(); String getVersion(); void addConfigurationChangeListener(ConfigurationChangeListener newListener); void removeConfigurationChangeListener(ConfigurationChangeListener toRemoveListener); FileBasedRepositoryConfiguration getFilebasedRepositoryConfiguration(); Optional<GitBasedRepositoryConfiguration> getGitBasedRepositoryConfiguration(); static void save(final AbstractConfigurationObject configuration); static void resetAccountabilityConfiguration();  }
@Test public void testGetUiConfig() { UiConfigurationObject testObject = Environments.getInstance().getUiConfig(); assertTrue(testObject.getFeatures().get("foo")); assertFalse(testObject.getFeatures().get("bar")); assertEquals("http: }