void () { assumeWindows(); File file = tempDir.newFile("dir/file.txt"); File junction = new File(tempDir.getRoot(), "junction"); createJunction(file.getParent(), junction.getPath()); String target = resolveSymLink(new File(junction.getPath() + '/' + file.getName())); assertEquals(file.getPath(), target); }