@Test
public void spanThatAfterDiv() {

    Path el = span.that(isAfter(div));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div>foo</div><div>boo</div><span>xyz</span>", el);
    assertThat(nodes.getLength(), is(1));
    assertThat(getText(nodes.item(0)), equalTo("xyz"));
    assertThat(el.toString(), is(equalTo("span, that is after: div")));
}