@Test
public void should_return_get_fields_when_position_is_known_and_form_is_not_null(){

    IncidentTemplateForm form = new IncidentTemplateForm();
    when(incidentFormService.getGBVTemplate()).thenReturn(form);
    Section section = new Section();
    Field miniFormField = new Field();
    Field otherFormField = new Field();
    List<Field> fields = Arrays.asList(new Field[]{miniFormField, otherFormField});
    List<Section> sections = Arrays.asList(new Section[]{section});
    section.setFields(fields);
    form.setSections(sections);
    int position = 0;
    assertThat(incidentRegisterPresenter.getFields(position).contains(miniFormField),is(true));
    assertThat(incidentRegisterPresenter.getFields(position).contains(otherFormField),is(true));
}