@Test
public void notTest() {

    Path el = BasicPath.element.that(not(hasText("a")));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div>a</div><div class='abc'></div>", el);
    assertThat(nodes.getLength(), is(2));
    assertThat(getElementName(nodes.item(0)), equalTo("html"));
    assertThat(getCssClass(nodes.item(1)), equalTo("abc"));
    assertThat(el.toString(), is(equalTo("any element, that has no the text \"a\"")));
}