@Before
public void beforeEach() {
rule = RewriteAsRangeCriteria.INSTANCE;
rules = new LinkedList<OptimizerRule>();
rules.add(rule);
context = new QueryContext(new ExecutionContext(), mock(RepositoryCache.class), Collections.singleton("workspace"),
mock(Schemata.class), mock(RepositoryIndexes.class), mock(NodeTypes.class),
mock(BufferManager.class));
print = false;
}