### Question:
DataTypeList { public void setupItems(final List<DataType> dataTypes) { setupItemsView(dataTypes); setupViewElements(); collapseItemsInTheFirstLevel(); } @Inject  DataTypeList(final View view,
                        final ManagedInstance<DataTypeListItem> listItems,
                        final DataTypeManager dataTypeManager,
                        final DataTypeSearchBar searchBar,
                        final DNDListComponent dndListComponent,
                        final DataTypeStackHash dataTypeStackHash,
                        final DNDDataTypesHandler dndDataTypesHandler,
                        final DataTypeListHighlightHelper highlightHelper,
                        final IsKogito isKogito); HTMLElement getElement(); void setupItems(final List<DataType> dataTypes); Optional<DataTypeListItem> findItem(final DataType dataType); DNDListComponent getDNDListComponent(); List<DataTypeListItem> getItems(); void showNoDataTypesFound(); void showListItems(); void collapseAll(); void enableEditMode(final String dataTypeHash); void registerDataTypeListItemUpdateCallback(final Consumer<DataTypeListItem> onDataTypeListItemUpdate); Optional<DataTypeListItem> findItemByDataTypeHash(final String dataTypeHash); String calculateHash(final DataType dataType); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent event); HTMLElement getListItems(); void importDataObjects(final List<DataObject> selectedDataObjects); void disableEditModeForChildren(final DataTypeListItem dataTypeListItem); List<String> getExistingDataTypesNames(); void highlightLevel(final DataType dataType); void highlightLevel(final Element element); void highlight(final Element element); void cleanLevelHighlightClass(); void cleanHighlightClass();  }### Answer:
@Test public void testSetupItems() { final DataType dataType1 = makeDataType("item", "iITem"); final DataType dataType2 = makeDataType("item", "iITem"); final DataTypeListItem listItem1 = mock(DataTypeListItem.class); final DataTypeListItem listItem2 = mock(DataTypeListItem.class); final List<DataType> dataTypes = asList(dataType1, dataType2); final List<DataTypeListItem> listItems = asList(listItem1, listItem2); doReturn(listItems).when(dataTypeList).makeDataTypeListItems(dataTypes); dataTypeList.setupItems(dataTypes); final InOrder inOrder = Mockito.inOrder(dndListComponent, dataTypeList, view); inOrder.verify(dndListComponent).clear(); inOrder.verify(dataTypeList).makeDataTypeListItems(dataTypes); inOrder.verify(dndListComponent).refreshItemsPosition(); inOrder.verify(view).showOrHideNoCustomItemsMessage(); inOrder.verify(view).showReadOnlyMessage(false); inOrder.verify(dataTypeList).collapseItemsInTheFirstLevel(); assertEquals(listItems, dataTypeList.getItems()); }