### Question:
RelativeUnixPath { public static RelativeUnixPath get(String relativePath) { if (relativePath.startsWith("/")) { throw new IllegalArgumentException("Path starts with forward slash (/): " + relativePath); } return new RelativeUnixPath(UnixPathParser.parse(relativePath)); } private  RelativeUnixPath(List<String> pathComponents); static RelativeUnixPath get(String relativePath);  }### Answer:
@Test public void testGet_absolute() { try { RelativeUnixPath.get("/absolute"); Assert.fail(); } catch (IllegalArgumentException ex) { Assert.assertEquals("Path starts with forward slash (/): /absolute", ex.getMessage()); } }
@Test public void testGet() { Assert.assertEquals( ImmutableList.of("some", "relative", "path"), RelativeUnixPath.get("some/relative }