PackageValidator { public static List<String> components(String name) { return ImmutableList.copyOf(Splitter.on('.').split(name)); } private  PackageValidator(); static List<String> components(String name); static void validate(String name); static String conjurePackage(Iterable<String> components); static final String PRIMITIVE; }
@Test public void testComponents() { assertThat(PackageValidator.components("foo.bar.baz")).containsExactly("foo", "bar", "baz"); }