### Question:
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { void refreshDataTypesList(final BaseIncludedModelActiveRecord includedModel) { client.loadItemDefinitionsByNamespace(includedModel.getName(), includedModel.getNamespace(), getItemDefinitionConsumer()); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide();  }### Answer:
@Test public void testRefreshDataTypesList() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); final Consumer<List<ItemDefinition>> listConsumer = list -> {}; final String modelName = "model1"; final String namespace = ": when(includedModel.getName()).thenReturn(modelName); when(includedModel.getNamespace()).thenReturn(namespace); doReturn(listConsumer).when(modal).getItemDefinitionConsumer(); modal.refreshDataTypesList(includedModel); verify(client).loadItemDefinitionsByNamespace(modelName, namespace, listConsumer); }