@Test public void insideAndFolowingSibling4() {

    Path el1 = span.childOf(div).inside(listItem);
    Path el = anchor.that (isAfterSibling (el1));
    logit(el1);
    logit(el);
    assertThat(el.getXPath().get(), equalTo("a[preceding-sibling::span[parent::div][ancestor::li]]"));
    NodeList nodes = findAllByXpath("<li><div>abc</div><div><span>def</span><a>abc</a></div></li>", el);
    assertThat(nodes.getLength(), equalTo(1));
    assertThat(getElementName(nodes.item(0)), equalTo("a"));
    assertThat(getText(nodes.item(0)), equalTo("abc"));
}