void () { final CollectionPattern<String> filter = collection(String.class); assertTrue(filter.empty().accepts(Arrays.<String>asList())); assertFalse(filter.empty().accepts(Arrays.asList("abc"))); assertFalse(filter.empty().accepts(Arrays.asList("abc", "abc"))); assertFalse(not(filter.empty()).accepts(Arrays.<String>asList())); assertTrue(not(filter.empty()).accepts(Arrays.asList("abc"))); assertTrue(not(filter.empty()).accepts(Arrays.asList("abc", "abc"))); }