@Test
public void withoutClassesTest() {

    Path el = BasicPath.element.inside(BasicPath.html).that(hasNonOfTheClasses("bar", "foo"));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div class=\"not-foo\"></div><div class=\" foo not\"></div><span class=\" foo\">abc</span>", el);
    assertThat(nodes.getLength(), is(1));
    assertThat(getCssClass(nodes.item(0)), equalTo("not-foo"));
    assertThat(getElementName(nodes.item(0)), equalTo("div"));
    assertThat(el.toString(), is(equalTo("any element, inside document, and has non of the classes [bar, foo]")));
}