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

    Query query = session.getWorkspace().getQueryManager().createQuery("//element(*,nt:base)", Query.XPATH);
    QueryResult result = query.execute();
    validateQuery().rowCount(totalNodeCount).hasColumns(allColumnNames()).validate(query, result);
}