@Test
public void getDMNTypesMapWithItemDefinitions() {

    jstiItemDefinitions.add(jsitItemDefinitionMock);
    Map<String, ClientDMNType> dmnTypesMap = abstractKogitoDMNServiceSpy.getDMNDataTypesMap(jstiItemDefinitions, NAMESPACE);
    // It must contains all elements defined in BuiltInType ENUM + one defined jstiItemDefinitionMock item
    assertTrue(dmnTypesMap.size() == 15);
    for (BuiltInType builtInType : BuiltInType.values()) {
        Arrays.stream(builtInType.getNames()).forEach(name -> assertNotNull(dmnTypesMap.get(name)));
    }
    assertNotNull(dmnTypesMap.get(TYPE_NAME));
    assertNull(dmnTypesMap.get(TYPE_NAME).getFeelType());
    assertEquals(TYPE_NAME, dmnTypesMap.get(TYPE_NAME).getName());
    assertEquals(NAMESPACE, dmnTypesMap.get(TYPE_NAME).getNamespace());
    assertFalse(dmnTypesMap.get(TYPE_NAME).isCollection());
}