@Test
public void should_return_displayed_index_when_case_is_empty() throws Exception {

    when(caseService.getAll()).thenReturn(Collections.EMPTY_LIST);
    int index = caseListPresenter.calculateDisplayedIndex();
    assertThat("Should return 1 when cases is empty", index, is(1));
}