@Test
public void findWithoutUnderlying() {

    when(webElement.findElement(By.xpath("//*[not(self::div)]"))).thenReturn(webElement2);
    Path path = BasicPath.builder().withUnderlying(webElement).withXpath("div").build();
    assertThat(InBrowserFinder.findPageWithout(driverMock, path), is(webElement2));
}