IncidentListPresenter extends RecordListPresenter { @Override public boolean isFormReady() { return incidentFormService.isReady(); } @Inject  IncidentListPresenter(IncidentService incidentService, IncidentFormService
            incidentFormService, RecordService recordService); @Override boolean isFormReady(); @Override List<Long> getRecordsByFilter(SpinnerState spinnerState); @Override List<Long> getSyncedRecords(); @Override int getSyncedRecordsCount(); @Override int calculateDisplayedIndex();  }
@Test public void should_return_true_when_form_is_ready(){ when(incidentFormService.isReady()).thenReturn(true); assertThat(incidentListPresenter.isFormReady(),is(true)); verify(incidentFormService,times(1)).isReady(); }
@Test public void should_return_false_when_form_is_ready(){ when(incidentFormService.isReady()).thenReturn(false); assertThat(incidentListPresenter.isFormReady(),is(false)); verify(incidentFormService,times(1)).isReady(); }
@Test public void should_return_true_if_incident_form_is_ready() throws Exception { when(incidentFormService.isReady()).thenReturn(true); assertThat("Should return true if incident form is ready", incidentListPresenter.isFormReady(), is(true)); }