@Test
public void isAfterTest() {

    Path el = BasicPath.element.that(isAfter(div.withClass("container")));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div>a</div><div class='container'><div class='a'><div class='a.a'></div></div><span class='b'/></div><div>c</div><div>d</div><span class='abc'></span>", el);
    assertThat(nodes.getLength(), is(3));
    assertThat(getText(nodes.item(0)), equalTo("c"));
    assertThat(getText(nodes.item(1)), equalTo("d"));
    assertThat(getCssClass(nodes.item(2)), equalTo("abc"));
    assertThat(el.toString(), is(equalTo("any element, that is after: (div, that has class container)")));
}