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

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