@Test
public void hasAggregatedTextStartingWithTest() {

    Path el = element.that(hasAggregatedTextStartingWith("aB"));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<span>bc</span><div class=\"a\">" +
            " <span class=\"b\">abc</span><span> xabc</span><span class=\"c\">ab bb</span></div>", el);
    assertThat(nodes.getLength(), equalTo(3));
    assertThat(getCssClass(nodes.item(0)), equalTo("a"));
    assertThat(getCssClass(nodes.item(1)), equalTo("b"));
    assertThat(getCssClass(nodes.item(2)), equalTo("c"));
    assertThat(el.toString(), equalTo( "any element, with aggregated text that starts with \"aB\""));
}