Environments { public RepositoryConfigurationObject getRepositoryConfig() { checkForUpdateAndUpdateInstances(); if (repositoryConfigurationObject == null) { repositoryConfigurationObject = new RepositoryConfigurationObject(Environment.getInstance().getConfiguration(), getGitConfig()); } return repositoryConfigurationObject; } 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 testGetRepositoryConfig() { RepositoryConfigurationObject repositoryConfig = Environments.getInstance().getRepositoryConfig(); assertEquals("file", repositoryConfig.getProvider().toString()); assertEquals("thisisatestroot", repositoryConfig.getRepositoryRoot()); }