@Test public void canGetNewTargets() { selectedTU = currentPageRows.get(0); when(display.getNewTargets()).thenReturn(NEW_TARGETS); presenter.setStatesForTesting(selectedTU.getId(), 0, display); List<String> result = presenter.getNewTargets(); MatcherAssert.assertThat(result, Matchers.sameInstance(NEW_TARGETS)); }