@Test
public void getFragment_path_end() {

    item.searchTerm = "_endofpath";
    String snippet = item.getFragment();
    assertEquals("...textsometextsometext<span class=\"aecu-highlight\">_endofpath</span>", snippet);
}