service.processForAppPresenter(document.getId());
verify(appPresenter).selectDocument(document.getId());
verify(eventBus).fireEvent(eventCaptor.capture());
DocumentSelectionEvent documentSelectionEvent =
TestFixture.extractFromEvents(eventCaptor.getAllValues(),
DocumentSelectionEvent.class);
assertThat(documentSelectionEvent.getDocumentId(),
Matchers.equalTo(document.getId()));
}