query = "SELECT jcr:primaryType, foo:bar FROM nt:unstructured";
graphResult = mock(QueryResults.class);
columnTypes = Arrays.asList("STRING", "LONG");
columnNames = Arrays.asList("jcr:primaryType", "foo:bar");
SelectorName tableName = new SelectorName("nt:unstructured");
columns = Arrays.asList(new Column(tableName, columnNames.get(0), columnNames.get(0)),
new Column(tableName, columnNames.get(1), columnNames.get(1)));
resultColumns = new ScanningQueryEngine.ResultColumns(columns, columnTypes, true, null);
when(graphResult.getColumns()).thenReturn(resultColumns);
when(graphResult.getRows()).thenReturn(NodeSequence.emptySequence(1));
PlanHints hints = new PlanHints();