@Test
public void required_Field_is_false_when_save_record() {

    ItemValuesMap itemValuesMap = new ItemValuesMap();
    itemValuesMap.addBooleanItem("is_case", true);
    itemValuesMap.addNumberItem("age", 12);
    RecordRegisterView.SaveRecordCallback callback = mock(RecordRegisterView
            .SaveRecordCallback.class);
    IncidentTemplateForm incidentTemplateForm = mock(IncidentTemplateForm.class);
    when(incidentFormService.getGBVTemplate()).thenReturn(incidentTemplateForm);
    when(incidentService.validateRequiredFields(incidentTemplateForm, itemValuesMap))
            .thenReturn(false);
    RecordRegisterView view = mock(RecordRegisterView.class);
    when(view.getFieldValueVerifyResult()).thenReturn(new ItemValuesMap());
    incidentRegisterPresenter.attachView(view);
    incidentRegisterPresenter.saveRecord(itemValuesMap, new ArrayList<String>(), callback);
    verify(callback, times(1)).onRequiredFieldNotFilled();
}