DescriptionUtils { static void extractNominalValues(CharSequence description, Collection<String> target) { Collections.addAll(target, COMMA.split(description)); } private  DescriptionUtils();   }
@Test public void testExtractNominalValues() { String description = "val1,val2,val3"; Collection<String> target = Lists.newArrayList(); DescriptionUtils.extractNominalValues(description, target); assertEquals(3, target.size()); assertTrue("'val1 not found'", target.contains("val1")); assertTrue("'val2 not found'", target.contains("val2")); assertTrue("'val3 not found'", target.contains("val3")); }