Environments { public GitConfigurationObject getGitConfig() { checkForUpdateAndUpdateInstances(); if (gitConfigurationObject == null) { gitConfigurationObject = new GitConfigurationObject(Environment.getInstance().getConfiguration()); } return gitConfigurationObject; } 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 testGetGitConfig() { GitConfigurationObject gitInfo = Environments.getInstance().getGitConfig(); assertEquals("id", gitInfo.getClientID()); assertEquals("secret", gitInfo.getClientSecret()); assertEquals("default", gitInfo.getUsername()); assertEquals("default", gitInfo.getPassword()); assertFalse(gitInfo.isAutocommit()); }