MultipleReferencePatternMatcher implements ReferencePatternMatcher { @Override public boolean isMatching( String url ) { for ( ReferencePatternMatcher matcherToApply : matchersToApply ) { if ( matcherToApply.isMatching( url ) ) return true; } return false; }  @Override boolean isMatching( String url ); void addMatcherToApply( ReferencePatternMatcher matcherToAdd ); void removeMatcherToApply( ReferencePatternMatcher matcherToAdd );  }
@Test public void testIsMatching_noMatchers() throws Exception { MultipleReferencePatternMatcher matcher = new MultipleReferencePatternMatcher(); assertThat( matcher.isMatching( "test" ), is( false ) ); }