public static List<String> parseAsList(String value, String delimiter) {
    return Lists.newArrayList(Splitter.on(delimiter).trimResults().omitEmptyStrings()
        .split(value));
  }
@Test
  public void parseAsList() {
    assertEquals(Lists.newArrayList("a"), ConfigurationUtils.parseAsList("a", ","));
    assertEquals(Lists.newArrayList("a", "b", "c"), ConfigurationUtils.parseAsList("a,b,c", ","));
    assertEquals(Lists.newArrayList("a", "b", "c"),
        ConfigurationUtils.parseAsList(" a , b , c ", ","));
    assertEquals(Lists.newArrayList("a,b,c"), ConfigurationUtils.parseAsList("a,b,c", ";"));
    assertEquals(Lists.newArrayList("a", "c"), ConfigurationUtils.parseAsList(",,a,,c,,", ","));
  }