@Test
public void checkTypeRecursive() {

    DMNTypeServiceImpl.ErrorHolder errorHolder = new DMNTypeServiceImpl.ErrorHolder();
    dmnTypeServiceImpl.checkTypeSupport(getRecursivePersonComposite(false), errorHolder, "");
    assertEquals(1, errorHolder.getMultipleNestedCollection().size());
    assertEquals(2, errorHolder.getMultipleNestedObject().size());
    errorHolder = new DMNTypeServiceImpl.ErrorHolder();
    dmnTypeServiceImpl.checkTypeSupport(getRecursivePersonComposite(true), errorHolder, "");
    assertEquals(2, errorHolder.getMultipleNestedCollection().size());
    assertEquals(2, errorHolder.getMultipleNestedObject().size());
}