@Test
public void occurrenceNumberTest() {

    Path el = occurrenceNumber(2).of(div);
    NodeList nodes = findAllByXpath("<div>a<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></div>", el);
    assertThat(nodes.getLength(), equalTo(1));
    assertThat(getCssClass(nodes.item(0)), equalTo("container"));
    assertThat(el.toString(), equalTo("occurrence number 2 of div"));
}