CaseListPresenter extends RecordListPresenter { @Override public boolean isFormReady() { return caseFormService.isReady(); } @Inject  CaseListPresenter(CaseService caseService, CaseFormService caseFormService, RecordService recordService); @Override boolean isFormReady(); @Override List<Long> getRecordsByFilter(SpinnerState spinnerState); @Override List<Long> getSyncedRecords(); @Override int calculateDisplayedIndex(); @Override int getSyncedRecordsCount();  }
@Test public void should_return_true_if_case_form_is_ready() throws Exception { when(caseFormService.isReady()).thenReturn(true); assertThat("Should return true if case form is ready", caseListPresenter.isFormReady(), is(true)); }