Path implements IPath { @Override public String getPath() { return path; } Path(final String path);  Path(final File file);  Path(final java.nio.file.Path nioPath); @Override String getPath(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void Should_beCreatedFromString() { IPath path = new Path("foo/bar"); assertEquals("foo/bar", path.getPath()); }
@Test public void Should_beCreatedFromFile() { File file = new File("foo/bar"); IPath path = new Path(file); assertEquals("foo/bar", path.getPath()); }
@Test public void Should_beCreatedFromNioPath() { java.nio.file.Path nioPath = Paths.get("foo", "bar"); IPath path = new Path(nioPath); assertEquals("foo/bar", path.getPath()); }