IPv4RangePropertyValueParser { private List<String> parseCommaDelimited(String value) { return Arrays.stream(Strings.split(value, ',')).map(String::strip).collect(Collectors.toList()); } IPv4RangePropertyValueParser(String value); List<String> parse();  }
@Test void parseCommaDelimited() { assertThat(new IPv4RangePropertyValueParser("cidr1, cidr2").parse()).containsExactly("cidr1", "cidr2"); assertThat(new IPv4RangePropertyValueParser(" cidr1 ").parse()).containsExactly("cidr1"); assertThat(new IPv4RangePropertyValueParser("cidr1,cidr2 ").parse()).containsExactly("cidr1", "cidr2"); }