### Question:
DataTypeListItem { void refreshSubItems(final List<DataType> dataTypes, final boolean enableFocusMode) { dataTypeList.refreshSubItemsFromListItem(this, dataTypes); dataTypeList.refreshDragAndDropList(); if (enableFocusMode) { view.enableFocusMode(); } view.toggleArrow(!dataTypes.isEmpty()); dataTypes.forEach(dataTypeList::highlightLevel); } @Inject  DataTypeListItem(final View view,
                            final DataTypeSelect dataTypeSelectComponent,
                            final DataTypeConstraint dataTypeConstraintComponent,
                            final SmallSwitchComponent dataTypeListComponent,
                            final DataTypeManager dataTypeManager,
                            final DataTypeConfirmation confirmation,
                            final DataTypeNameFormatValidator nameFormatValidator,
                            final Event<DataTypeEditModeToggleEvent> editModeToggleEvent,
                            final Event<DataTypeChangedEvent> dataTypeChangedEvent); void init(final DataTypeList dataTypeList); DataType getDataType(); boolean isReadOnly(); int getLevel(); boolean isCollapsed(); void expand(); void collapse(); void enableEditMode(); void disableEditMode(); void saveAndCloseEditMode(); void remove(); Command removeItem(); Command destroy(); void destroyWithDependentTypes(); void destroyWithoutDependentTypes(); String getType(); void insertFieldAbove(); String insertFieldAbove(final DataType dataType); void insertFieldBelow(); String insertFieldBelow(final DataType dataType); void insertNestedField(); void insertNestedField(final DataType newDataType); HTMLElement getDragAndDropElement(); void highlightLevel(final DataType dataType);  }### Answer:
@Test public void testRefreshSubItems() { final DataType dataType = mock(DataType.class); final List<DataType> dataTypes = singletonList(dataType); listItem.refreshSubItems(dataTypes, true); verify(dataTypeList).refreshSubItemsFromListItem(listItem, dataTypes); verify(listItem, never()).expandOrCollapseSubTypes(); verify(view).enableFocusMode(); verify(view).toggleArrow(anyBoolean()); verify(dataTypeList).highlightLevel(dataType); }