### Question:
PathService implements Comparator<JimfsPath> { public PathMatcher createPathMatcher(String syntaxAndPattern) { return PathMatchers.getPathMatcher( syntaxAndPattern, type.getSeparator() + type.getOtherSeparators(), equalityUsesCanonicalForm ? canonicalNormalizations : displayNormalizations); } PathService(Configuration config);   PathService(
      PathType type,
      Iterable<PathNormalization> displayNormalizations,
      Iterable<PathNormalization> canonicalNormalizations,
      boolean equalityUsesCanonicalForm); void setFileSystem(FileSystem fileSystem); FileSystem getFileSystem(); String getSeparator(); JimfsPath emptyPath(); Name name(String name); JimfsPath createRoot(Name root); JimfsPath createFileName(Name name); JimfsPath createRelativePath(Iterable<Name> names); JimfsPath createPath(@NullableDecl Name root, Iterable<Name> names); JimfsPath parsePath(String first, String... more); String toString(JimfsPath path); int hash(JimfsPath path); @Override int compare(JimfsPath a, JimfsPath b); URI toUri(URI fileSystemUri, JimfsPath path); JimfsPath fromUri(URI uri); PathMatcher createPathMatcher(String syntaxAndPattern);  }### Answer:
@Test public void testPathMatcher() { assertThat(service.createPathMatcher("regex:foo")) .isInstanceOf(PathMatchers.RegexPathMatcher.class); assertThat(service.createPathMatcher("glob:foo")) .isInstanceOf(PathMatchers.RegexPathMatcher.class); }