@Test
public void isBeforeSiblingAtLeastN() {

    Path el = BasicPath.element.that(isBeforeSibling(atLeast(1).occurrencesOf(div)));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div>a</div><div class='b'><div>a.a</div><div>a.b</div><div>a.c</div></div><div>c</div>", el);
    assertThat(nodes.getLength(), is(4));
    assertThat(getText(nodes.item(0)), equalTo("a"));
    assertThat(getCssClass(nodes.item(1)), equalTo("b"));
    assertThat(getText(nodes.item(2)), equalTo("a.a"));
    assertThat(getText(nodes.item(3)), equalTo("a.b"));
    assertThat(el.toString(), is(equalTo("any element, that is before at least 1 siblings of type: div")));
}