@Test
public void invalidQuery() {

    try {
        index.findNodes("invalid:");
        fail("IllegalArgumentException expected");
    } catch(IllegalArgumentException e) {
        assertThat(e.getMessage()).startsWith("Parsing of query failed: invalid:");
    }
}