### Question:
PathUtil { public static String resolve(String path) { if (path == null) { return null; } if (path.startsWith("~" + File.separator)) { return SystemUtil.getUserHome() + path.substring(1); } return path; } private  PathUtil(); static String resolve(String path);  }### Answer:
@Test public void resolveTest() { Assert.assertEquals("/home/dtrack", PathUtil.resolve("/home/dtrack")); Assert.assertNotNull(PathUtil.resolve("~/dtrack")); Assert.assertNotEquals("~/dtrack", PathUtil.resolve("~/dtrack")); }