TracingRegisterPresenter extends RecordRegisterPresenter { @Override protected Long getRecordId(Bundle bundle) { return bundle.getLong(TRACING_PRIMARY_ID, RecordRegisterFragment.INVALID_RECORD_ID); } @Inject  TracingRegisterPresenter(TracingService tracingService, TracingFormService
            tracingFormService, TracingPhotoService tracingPhotoService); @Override void saveRecord(ItemValuesMap itemValuesMap, List<String> photoPaths,
                           SaveRecordCallback callback); @Override List<Field> getFields(int position); @Override RecordForm getTemplateForm();  }
@Test public void should_return_true_record_id_when_get_record_id() { Bundle bundle = new Bundle(); bundle.putLong(TRACING_PRIMARY_ID, 2); assertThat(tracingRegisterPresenter.getRecordId(bundle), is(2L)); }