ExtraLink extends Extra<MMapURI> implements ExtraLinkable { @Override public boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern) { return pattern.matcher(this.uri.toString()).find(); } ExtraLink(@Nonnull final MMapURI uri);  ExtraLink(@Nonnull final String text); @Override int hashCode(); @Override boolean equals(@Nullable final Object that); @Override boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern); @Override @Nonnull MMapURI getValue(); @Override @Nonnull ExtraType getType(); @Override @Nonnull String getAsString(); @Override @Nonnull String provideAsStringForSave(); @Override @Nonnull MMapURI getAsURI();  }
@Test public void testContainsPattern() throws Exception { final ExtraLink link = new ExtraLink("http: assertTrue(link.containsPattern(null, Pattern.compile(Pattern.quote("http: assertTrue(link.containsPattern(new File(System.getProperty("user.home")), Pattern.compile(Pattern.quote("http: assertTrue(link.containsPattern(null, Pattern.compile(Pattern.quote("http: assertTrue(link.containsPattern(new File(System.getProperty("user.home")), Pattern.compile(Pattern.quote("http: assertTrue(link.containsPattern(null, Pattern.compile(Pattern.quote("num=1341507344")))); assertTrue(link.containsPattern(new File(System.getProperty("user.home")), Pattern.compile(Pattern.quote("num=1341507344")))); assertFalse(link.containsPattern(null, Pattern.compile(Pattern.quote("yab3"),Pattern.CASE_INSENSITIVE))); }