@Test
public void should_return_get_fields_from_incident_form_sections() {

    Field miniFormField = mock(Field.class);
    Field otherFormField = mock(Field.class);
    Section section = mock(Section.class);
    IncidentTemplateForm incidentTemplateForm = mock(IncidentTemplateForm.class);
    List<Field> fields = Arrays.asList(new Field[]{miniFormField, otherFormField});
    List<Section> sections = Arrays.asList(new Section[]{section});
    when(miniFormField.isShowOnMiniForm()).thenReturn(true);
    when(miniFormField.isPhotoUploadBox()).thenReturn(false);
    when(otherFormField.isShowOnMiniForm()).thenReturn(false);
    when(section.getFields()).thenReturn(fields);
    when(incidentTemplateForm.getSections()).thenReturn(sections);
    when(incidentFormService.getGBVTemplate()).thenReturn(incidentTemplateForm);
    List<Field> actual = incidentRegisterPresenter.getFields();
    assertThat("Should contain mini form field", actual.contains(miniFormField), is(true));
    assertThat("Should not contain full form field", actual.contains(otherFormField), is
            (false));
    verify(incidentFormService, times(1)).getGBVTemplate();
}