AbstractConfiguration { public String getConfiguration() { return options.asPairs(); } AbstractConfiguration(String configuration, List<String> forbiddenPrefixes);  AbstractConfiguration(String configuration, List<String> forbiddenPrefixes, Map<String, String> defaults);  AbstractConfiguration(Iterable<Map.Entry<String, Object>> jsonOptions, List<String> forbiddenPrefixes);  AbstractConfiguration(Iterable<Map.Entry<String, Object>> jsonOptions, List<String> forbiddenPrefixes, List<String> forbiddenPrefixExceptions);  AbstractConfiguration(Iterable<Map.Entry<String, Object>> jsonOptions, List<String> forbiddenPrefixes, Map<String, String> defaults);  AbstractConfiguration(Iterable<Map.Entry<String, Object>> jsonOptions, List<String> forbiddenPrefixes, List<String> forbiddenPrefixExceptions, Map<String, String> defaults); String getConfigOption(String configOption); String getConfigOption(String configOption, String defaultValue); void setConfigOption(String configOption, String value); void removeConfigOption(String configOption); String getConfiguration(); OrderedProperties asOrderedProperties();  }
@Test public void testEmptyConfigurationString() { String configuration = ""; AbstractConfiguration config = new TestConfigurationWithoutDefaults(configuration); assertThat(config.getConfiguration().isEmpty(), is(true)); }
@Test public void testEmptyJson() { JsonObject configuration = new JsonObject(); AbstractConfiguration config = new TestConfigurationWithoutDefaults(configuration); assertThat(config.getConfiguration().isEmpty(), is(true)); }