@Test
public void checkTypeSingleCompositeWithCollection() {

    // nested object into collection
    CompositeTypeImpl person = new CompositeTypeImpl();
    CompositeTypeImpl complexNumbers = new CompositeTypeImpl(null, "tPhoneNumber", null, false);
    CompositeTypeImpl phoneNumberCompositeCollection = new CompositeTypeImpl(null, "tPhoneNumber", null, true);
    phoneNumberCompositeCollection.addField("complexNumbers", complexNumbers);
    person.addField(EXPANDABLE_PROPERTY_PHONENUMBERS, phoneNumberCompositeCollection);
    DMNTypeServiceImpl.ErrorHolder errorHolder = new DMNTypeServiceImpl.ErrorHolder();
    dmnTypeServiceImpl.checkTypeSupport(person, errorHolder, "fieldName");
    assertEquals(1, errorHolder.getMultipleNestedObject().size());
    assertEquals(0, errorHolder.getMultipleNestedCollection().size());
    assertTrue(errorHolder.getMultipleNestedObject().contains("fieldName.phoneNumbers.complexNumbers"));
}