replay(mockResources);
Renderer mockRenderer = EasyMock.createNiceMock(Renderer.class);
replay(mockRenderer);
IncrementalScheduler stubScheduler = new StubIncrementalScheduler(10, 1000);
ListenerRegistrar<CursorListener> listenerRegistrar = ListenerManager.create();
parenMatchHighlighter =
new ParenMatchHighlighter(document, createMockViewport(document, lines.size()),