RegexpDefinitionPatternMatcherFactory implements
        DefinitionPatternMatcherFactory { public DefinitionPatternMatcher createDefinitionPatternMatcher( String pattern, Definition definition) { return new RegexpDefinitionPatternMatcher(pattern, definition); }  DefinitionPatternMatcher createDefinitionPatternMatcher(
            String pattern, Definition definition);  }
@Test public void testCreateDefinitionPatternMatcher() { assertTrue(factory.createDefinitionPatternMatcher("myPattern", new Definition()) instanceof RegexpDefinitionPatternMatcher); }