GlobMatcher implements PathMatcher { public boolean matches(Path file) { return file == null || matcher.matches(file) || matcher.matches(file.getFileName()); } GlobMatcher(String pattern); boolean matches(Path file);  }
@Test public void matchTest() { assertThat("The matcher should have returned " + !expectedResult + " to path " + path.toString(), matcher.matches(path), is(expectedResult)); }