@Ignore
@Test
public void shouldFailIfGetNodesOrGetRowsIsCalledAfterGetRowsCalledOncePerQueryResult() throws RepositoryException {

    String sql = "SELECT * FROM [nt:unstructured]";
    Query query = session.getWorkspace().getQueryManager().createQuery(sql, Query.JCR_SQL2);
    org.modeshape.jcr.api.query.QueryResult result = (org.modeshape.jcr.api.query.QueryResult)query.execute();
    assertNotNull(result.getRows());
    try {
        result.getRows();
        fail();
    } catch (RepositoryException e) {
        // expected
    }
    try {
        result.getNodes();
        fail();
    } catch (RepositoryException e) {
        // expected
    }
}