void () { ElementPattern pattern = collection(String.class).atLeastOne(string().startsWith("abc")); assertTrue(pattern.accepts(Arrays.asList("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc", "abcd"))); assertTrue(pattern.accepts(Arrays.asList("abc", "bcd"))); assertFalse(pattern.accepts(Arrays.asList("bc", "bcd"))); assertTrue(pattern.accepts(Arrays.asList("bc", "abc"))); }