WildcardDefinitionPatternMatcherFactory implements
        DefinitionPatternMatcherFactory, PatternRecognizer { public boolean isPatternRecognized(String candidatePattern) { return candidatePattern.indexOf('*') >= 0; }  DefinitionPatternMatcher createDefinitionPatternMatcher(
            String pattern, Definition definition); boolean isPatternRecognized(String candidatePattern);  }
@Test public void testIsPatternRecognized() { assertTrue(factory.isPatternRecognized("my*pattern")); assertFalse(factory.isPatternRecognized("mypattern")); }