@Test
public void underlyingToString() {

    BasicPath path = new PathBuilder().withXpath("Johhny").withUnderlying(mock(WebElement.class)).build();
    assertThat(path.toString(), startsWith("under reference element Mock for WebElement"));
    assertThat(path.toString(), endsWith("xpath: \"Johhny\""));
}