@SuppressWarnings( "deprecation" )
@Test
public void shouldQueryRepository() throws Exception {

    QueryResult queryResult = REST_CLIENT.query("SELECT node.[jcr:path] FROM [mode:root] AS node", Query.JCR_SQL2);
    assertQueryResult(queryResult);
    queryResult = REST_CLIENT.query("SELECT jcr:path FROM mode:root", Query.SQL);
    assertQueryResult(queryResult);
    queryResult = REST_CLIENT.query("//element(*, mode:root)", Query.XPATH);
    assertQueryResult(queryResult);
}