AbstractConfiguration { protected static List<String> splitPrefixesToList(String prefixes) { return asList(prefixes.split("\\s*,+\\s*")); } 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 testSplittingOfPrefixes() { String prefixes = "prefix1.field,prefix2.field , prefix3.field, prefix4.field,, "; List<String> prefixList = asList("prefix1.field", "prefix2.field", "prefix3.field", "prefix4.field"); assertThat(AbstractConfiguration.splitPrefixesToList(prefixes).equals(prefixList), is(true)); }