@Test
public void hasSomeChildrenTest() {

    Path el = BasicPath.element.inside(BasicPath.html.that(hasChildren)).that(hasChild(div));
    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></div><span class='abc'></span>", el);
    assertThat(nodes.getLength(), is(2));
    assertThat(getCssClass(nodes.item(0)), equalTo("container"));
    assertThat(getCssClass(nodes.item(1)), equalTo("a"));
    assertThat(el.toString(), is(equalTo("any element, inside (document, that has some children), and has child: div")));
}