### Question:
PathNormalizer { public static Path getCanonicalPath(Path file) { try { return file.toFile().getCanonicalFile().toPath(); } catch (IOException e) { throw new UncheckedIOException(e); } } private  PathNormalizer(String basedir); static PathNormalizer createNormalizer(Path basedir); static PathNormalizer createNormalizer(String memento); static PathNormalizer createNormalizer(); String getMemento(); String normalize(String file); String normalize(Path path); static String normalize0(Path file); static Path getCanonicalPath(Path file); static String normalize0(String file); static Path toPath(String file);  }### Answer:
@Test @Ignore("requires local path which the current process does not have permissions to access") public void testToCanonicalPath_noAccess() throws IOException { String inaccessible = "/Users/karina/Documents/Electronic Arts"; Path path = getCanonicalPath(Paths.get(inaccessible)); assertEquals(inaccessible, path.toString()); }