### Question:
BoxFileSystem extends FileSystem { public BoxPath getPath(Path oldPath) { BoxPath path = new BoxPath(this, looksAbsolute(oldPath) ? getSeparator() : ""); for (int i = 0; i < oldPath.getNameCount(); i++) { path = (BoxPath)path.resolve(oldPath.getName(i)); } return path; }  @Override FileSystemProvider provider(); static BoxPath pathFromBoxDto(de.qabel.box.storage.dto.BoxPath dto); @Override void close(); @Override boolean isOpen(); @Override boolean isReadOnly(); @Override String getSeparator(); @Override Iterable<Path> getRootDirectories(); @Override Iterable<FileStore> getFileStores(); @Override Set<String> supportedFileAttributeViews(); static BoxPath getRoot(); @Deprecated static BoxPath get(String first, String... more); static BoxPath get(Path oldPath); BoxPath getPath(Path oldPath); @Override BoxPath getPath(String first, String... more); @Override PathMatcher getPathMatcher(String syntaxAndPattern); @Override UserPrincipalLookupService getUserPrincipalLookupService(); @Override WatchService newWatchService();  }### Answer:
@Test public void testPathResolution() { Path path = fs.getPath("first", "second", "third"); assertEquals("first/second/third", path.toString()); }
@Test public void testRootResolution() { assertEquals("/first", fs.getPath("/", "first").toString()); }