@SuppressWarnings( "deprecation" )
@Test
public void shouldBeAbleToCreateXPathQuery() throws RepositoryException {

    Query query = session.getWorkspace().getQueryManager().createQuery("//element(*,car:Car)", Query.XPATH);
    validateQuery().rowCount(13).validate(query, query.execute());
    query = session.getWorkspace().getQueryManager().createQuery("//element(*,nt:unstructured)", Query.XPATH);
    validateQuery().rowCount(24).validate(query, query.execute());
}