@Test
public void testGetCustomInheritsSimpleCustomCollectionDMNTypes() {

    // tPeople[string] isCollection
    // tMen[tPeople]
    final JSITItemDefinition tPeople = mock(JSITItemDefinition.class);
    final JSITItemDefinition tMen = mock(JSITItemDefinition.class);
    final String tPeopleType = "tPeopleType";
    final String tMenType = "tMenType";
    when(tMen.getName()).thenReturn(tMenType);
    when(tMen.getTypeRef()).thenReturn(tPeopleType);
    when(tPeople.getName()).thenReturn(tPeopleType);
    when(tPeople.getTypeRef()).thenReturn(BuiltInType.STRING.getName());
    when(tPeople.getIsCollection()).thenReturn(true);
    final List<JSITItemDefinition> definitions = Arrays.asList(tPeople, tMen);
    final Map<String, ClientDMNType> dmnTypesMap = abstractKogitoDMNServiceSpy.getDMNDataTypesMap(definitions, "namespace");
    assertTrue(dmnTypesMap.containsKey(tPeopleType));
    final ClientDMNType dmnPeopleType = dmnTypesMap.get(tPeopleType);
    assertTrue(dmnPeopleType.getFields().isEmpty());
    assertEquals(BuiltInType.STRING, dmnPeopleType.getFeelType());
    assertTrue(dmnPeopleType.isCollection());
    assertFalse(dmnPeopleType.isComposite());
    final ClientDMNType dmnMenType = dmnTypesMap.get(tMenType);
    assertTrue(dmnMenType.getFields().isEmpty());
    assertEquals(BuiltInType.STRING, dmnMenType.getFeelType());
    assertTrue(dmnMenType.isCollection());
    assertFalse(dmnMenType.isComposite());
    // It must contains all elements defined in BuiltInType ENUM
    assertTrue(dmnTypesMap.size() == 16);
    for (BuiltInType builtInType : BuiltInType.values()) {
        Arrays.stream(builtInType.getNames()).forEach(name -> assertNotNull(dmnTypesMap.get(name)));
    }
}