Environments { public AccountabilityConfigurationObject getAccountabilityConfig() { checkForUpdateAndUpdateInstances(); if (accountabilityConfigurationObject == null) { accountabilityConfigurationObject = new AccountabilityConfigurationObject(Environment.getInstance().getConfiguration()); } return accountabilityConfigurationObject; } 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 testGetAccountabilityConfig() { AccountabilityConfigurationObject accountabilityConfig = Environments.getInstance().getAccountabilityConfig(); assertEquals("test.url", accountabilityConfig.getGethUrl()); assertEquals("123456789", accountabilityConfig.getEthereumPassword()); assertEquals("provenancesmartcontracttestaddress", accountabilityConfig.getEthereumProvenanceSmartContractAddress()); assertEquals("authorizationsmartcontracttestaddress", accountabilityConfig.getEthereumAuthorizationSmartContractAddress()); assertEquals("swarmgatewaytesturl", accountabilityConfig.getSwarmGatewayUrl()); }