@Test
public void isSiblingOfTest() {

    Path el = BasicPath.element.that(isSiblingOf(div.withClass("a")));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div class='container'><div>a</div><div class='a'><div class='a.a'></div></div><span class='b'/></div><div>c</div><div>d</div><span class='abc'></span>", el);
    assertThat(nodes.getLength(), is(2));
    assertThat(getElementName(nodes.item(0)), equalTo("div"));
    assertThat(getText(nodes.item(0)), equalTo("a"));
    assertThat(getCssClass(nodes.item(1)), equalTo("b"));
    assertThat(el.toString(), is(equalTo("any element, that has sibling: (div, that has class a)")));
}