void (final ElementPattern pattern) { assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("abcd")); assertTrue(pattern.accepts("abc")); assertTrue(pattern.accepts("abcdabc")); assertFalse(pattern.accepts("abcdab")); }