@Test( expected = InvalidPathException.class )
public void shouldNotFindRelativePathToAnotherRelativePath() {

    Path other = mock(Path.class);
    when(other.isAbsolute()).thenReturn(false);
    path.relativeTo(other);
}