CasePresenter extends RecordPresenter { public boolean isIncidentFormReady() { return incidentFormService.isReady(); } @Inject  CasePresenter(IncidentFormService incidentFormService); boolean isIncidentFormReady();  }
@Test public void should_return_true_when_incident_form_is_ready() throws Exception { when(incidentFormService.isReady()).thenReturn(true); assertThat("Should return true", casePresenter.isIncidentFormReady(), is(true)); verify(incidentFormService, times(1)).isReady(); }
@Test public void should_return_false_when_incident_form_not_ready() throws Exception { when(incidentFormService.isReady()).thenReturn(false); assertThat("Should return false", casePresenter.isIncidentFormReady(), is(false)); verify(incidentFormService, times(1)).isReady(); }