### Question:
ItemDefinitionPropertyConverter { static void setItemComponent(final ItemDefinition wb, final org.kie.dmn.model.api.ItemDefinition dmn) { dmn.getItemComponent().forEach(dmnChild -> { wb.getItemComponent().add(wbChildFromDMN(wb, dmnChild)); }); }  static ItemDefinition wbFromDMN(final org.kie.dmn.model.api.ItemDefinition dmn); static org.kie.dmn.model.api.ItemDefinition dmnFromWB(final ItemDefinition wb);  }### Answer:
@Test public void testSetItemComponent() { final String id = "id"; final String name = "name"; final String typeLanguage = "typeLanguage"; final boolean isCollection = true; final boolean isOnlyVisualChanges = false; final String description = "description"; final ItemDefinition expectedWbChild = new ItemDefinition(new Id(id), new Description(description), new Name(name), null, null, null, typeLanguage, isCollection, isOnlyVisualChanges); final ItemDefinition wb = new ItemDefinition(); final org.kie.dmn.model.api.ItemDefinition dmn = mock(org.kie.dmn.model.api.ItemDefinition.class); final org.kie.dmn.model.api.ItemDefinition dmnChild = mock(org.kie.dmn.model.api.ItemDefinition.class); when(dmnChild.getId()).thenReturn(id); when(dmnChild.getName()).thenReturn(name); when(dmnChild.getTypeLanguage()).thenReturn(typeLanguage); when(dmnChild.isIsCollection()).thenReturn(isCollection); when(dmnChild.getDescription()).thenReturn(description); when(dmnChild.getTypeRef()).thenReturn(null); when(dmn.getItemComponent()).thenReturn(singletonList(dmnChild)); setItemComponent(wb, dmn); final List<ItemDefinition> expectedItemDefinitions = singletonList(expectedWbChild); final List<ItemDefinition> actualItemDefinitions = wb.getItemComponent(); assertEquals(expectedItemDefinitions, actualItemDefinitions); assertEquals(wb, actualItemDefinitions.get(0).getParent()); }