@Before public void beforeTest() { leftSource = new HeapObjectDatabase(); rightSource = new HeapObjectDatabase(); leftSource.open(); rightSource.open(); consumer = mock(Consumer.class); when(consumer.feature(any(NodeRef.class), any(NodeRef.class))).thenReturn(true); testSupport = new RevObjectTestSupport(); testSupport.setBuildSpatialTrees(true); }