### Question:
AbsoluteUnixPath { public static AbsoluteUnixPath fromPath(Path path) { if (path.getRoot() == null) { throw new IllegalArgumentException( "Cannot create AbsoluteUnixPath from non-absolute Path: " + path); } List<String> pathComponents = new ArrayList<>(path.getNameCount()); path.forEach(component -> pathComponents.add(component.toString())); return new AbsoluteUnixPath(pathComponents); } private  AbsoluteUnixPath(List<String> pathComponents); static AbsoluteUnixPath get(String unixPath); static AbsoluteUnixPath fromPath(Path path); AbsoluteUnixPath resolve(RelativeUnixPath relativeUnixPath); AbsoluteUnixPath resolve(Path relativePath); AbsoluteUnixPath resolve(String relativeUnixPath); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode();  }### Answer:
@Test public void testFromPath() { Assert.assertEquals( "/absolute/path", AbsoluteUnixPath.fromPath(Paths.get("/absolute/path")).toString()); }