@Test
public void hasTextStartingWithSingleQouteTest() {

    Path el = div.that(hasTextStartingWith("'abc"));
    String xpath = el.getXPath().get();
    NodeList nodes = findAllByXpath("<div>'abd</div><div>'abcd</div><span> abc</span>", el);
    assertThat(nodes.getLength(), is(1));
    assertThat(getText(nodes.item(0)), equalTo("'abcd"));
    assertThat(getElementName(nodes.item(0)), equalTo("div"));
    assertThat(el.toString(), is(equalTo("div, that has text that starts with \"'abc\"")));
}