MorePaths { public static Path get(String first, String... more) { for (int i = 0; i < more.length; ++i) { more[i] = sanitize(more[i]); } return Paths.get(sanitize(first), more); } private  MorePaths(); static Path get(String first, String... more);  }
@Test public void testAlwaysReturnsValidPath() { String random = FileOps.tempFile(); if(Platform.isWindows()) { random = "/" + random; } Path path = MorePaths.get(random); Assert.assertTrue(Files.exists(path)); }