@Test
public void declareTypes() {

    List<KiePMMLDroolsType> types = new ArrayList<>();
    types.add(KiePMMLDescrTestUtils.getDroolsType());
    types.add(KiePMMLDescrTestUtils.getDottedDroolsType());
    assertTrue(builder.getDescr().getTypeDeclarations().isEmpty());
    KiePMMLDescrTypesFactory.factory(builder).declareTypes(types);
    assertEquals(2, builder.getDescr().getTypeDeclarations().size());
    IntStream.range(0, types.size())
            .forEach(i -> commonVerifyTypeDeclarationDescr(Objects.requireNonNull(types.get(i)), builder.getDescr().getTypeDeclarations().get(i)));
}