presenter.setStatesForTest(projectStats, selectedDocumentStats, null,
null);
presenter.showView(MainView.Documents);
RefreshProjectStatsEvent event = new RefreshProjectStatsEvent(buildSampleDocumentArray());
presenter.onProjectStatsUpdated(event);
assertThat("project stats should contain stats in the event",
projectStats.getStats().size(), is(2));