@Test
public void declareTypes() {

    List<DerivedField> derivedFields = IntStream.range(0, 5)
            .mapToObj(value -> getDerivedField("FieldName-" + value))
            .collect(Collectors.toList());
    List<KiePMMLDroolsType> retrieved = fieldASTFactory.declareTypes(derivedFields);
    assertEquals(derivedFields.size(), retrieved.size());
    for (int i = 0; i < derivedFields.size(); i++)  {
        commonValidateKiePMMLDroolsType(retrieved.get(i), derivedFields.get(i));
    }
}