### Question:
DecisionComponents { public void refresh() { if (!dmnDiagramsSession.isSessionStatePresent()) { return; } if (!isIncludedNodeListsUpdated()) { refreshIncludedNodesList(); } loadModelComponents(); } DecisionComponents(); @Inject  DecisionComponents(final View view,
                              final DMNIncludeModelsClient client,
                              final ManagedInstance<DecisionComponentsItem> itemManagedInstance,
                              final DecisionComponentFilter filter,
                              final DMNDiagramsSession dmnDiagramsSession,
                              final DMNGraphUtils dmnGraphUtils); @PostConstruct void init(); View getView(); void refresh(); void removeAllItems();  }### Answer:
@Test public void testRefresh() { final Consumer<List<DMNIncludedNode>> listConsumer = (list) -> {}; final List<DMNIncludedModel> includedModels = new ArrayList<>(); includedModels.add(makeDMNIncludedModel(": includedModels.add(makeDMNIncludedModel(": doReturn(includedModels).when(decisionComponents).getDMNIncludedModels(); doReturn(listConsumer).when(decisionComponents).getNodesConsumer(); decisionComponents.refreshIncludedNodesList(); verify(decisionComponents).startLoading(); verify(client).loadNodesFromImports(includedModels, listConsumer); assertEquals(includedModels, decisionComponents.getLatestIncludedModelsLoaded()); }