@Test public void testSetFocus() { presenter.setStatesForTesting(selectedTU.getId(), 99, display); presenter.setFocus(); // current editor index will be corrected if out of bound verify(display).focusEditor(0); }