BaseUrlReferencePatternMatcher implements ReferencePatternMatcher { @Override public boolean isMatching( String url ) { if ( url == null ) return false; return url.startsWith( baseUrl ); } BaseUrlReferencePatternMatcher( String baseUrl ); @Override boolean isMatching( String url );  }
@Test public void testIsMatching() throws Exception { assertThat( matcher.isMatching( "http: assertThat( matcher.isMatching( "http: assertThat( matcher.isMatching( "https: assertThat( matcher.isMatching( "http: assertThat( matcher.isMatching( "http: assertThat( matcher.isMatching( null ), is( false ) ); }