IncidentRegisterPresenter extends RecordRegisterPresenter { @Override protected String getUniqueId(Bundle bundle) { return bundle.getString(IncidentService.INCIDENT_ID, RecordRegisterFragment.INVALID_UNIQUE_ID); } @Inject  IncidentRegisterPresenter(IncidentService incidentService, IncidentFormService
            incidentFormService); @Override void saveRecord(ItemValuesMap itemValuesMap, List<String> photoPaths,
                           RecordRegisterView.SaveRecordCallback callback); @Override List<Field> getFields(int position); @Override RecordForm getTemplateForm();  }
@Test public void should_return_unique_id() throws Exception { Bundle bundle = new Bundle(); bundle.putString(IncidentService.INCIDENT_ID, "aa"); assertThat("Should return string 'aa'", incidentRegisterPresenter.getUniqueId(bundle), is("aa")); }