void () { assumeWindows(); Path uncRootPath = Paths.get(toLocalUncPath(tempDir.getRoot().getPath())); assumeTrue("Cannot access " + uncRootPath, Files.isDirectory(uncRootPath)); String entryName = "test_res_dir/test_res.txt"; File jar = createTestJar(tempDir.newFile("test.jar"), entryName, "-"); UrlClassLoader cl = builder().files(List.of(uncRootPath.resolve(jar.getName()))).get(); assertNotNull(cl.findResource(entryName)); }