@Test
public void should_return_zero_index_when_case_exits() throws Exception {

    List<Case> cases = Arrays.asList(new Case());
    when(caseService.getAll()).thenReturn(cases);
    assertThat("Should return 0 when case exits", caseListPresenter.calculateDisplayedIndex(), is(0));
}