void () { String wslName = IoTestUtil.assumeWorkingWslDistribution(); File usrBinFile = new File("\\\\wsl$\\" + wslName + "\\usr\\bin\\"); assertTrue(usrBinFile + " doesn't exist", usrBinFile.exists()); VirtualFile usrBin = LocalFileSystem.getInstance().findFileByIoFile(usrBinFile); assertTrue(VfsUtilCore.pathEqualsTo(usrBin, "\\\\wsl$\\" + wslName + "\\usr\\bin\\")); assertTrue(VfsUtilCore.pathEqualsTo(usrBin, "//wsl$/" + wslName + "/usr/bin")); assertTrue(VfsUtilCore.pathEqualsTo(usrBin, "//wsl$/" + wslName + "/usr/bin/")); assertFalse(VfsUtilCore.pathEqualsTo(usrBin, "//xxx$/" + wslName + "/usr/bin/")); assertFalse(VfsUtilCore.pathEqualsTo(usrBin, "//wsl$/xxx/usr/bin/")); assertFalse(VfsUtilCore.pathEqualsTo(usrBin.getParent(), "//wsl$/xxx/usr")); }