### Question:
DecisionComponentsItem { public void setDecisionComponent(final DecisionComponent decisionComponent) { this.decisionComponent = decisionComponent; setupView(); } @Inject  DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent decisionComponent); void show(); void hide(); DRGElement getDrgElement();  }### Answer:
@Test public void testSetDecisionComponent() { final DecisionComponent decisionComponent = mock(DecisionComponent.class); when(decisionComponent.getIcon()).thenReturn(DECISION_PALETTE); when(decisionComponent.getName()).thenReturn("name"); when(decisionComponent.getFileName()).thenReturn("file"); item.setDecisionComponent(decisionComponent); verify(view).setIcon(DECISION_PALETTE.getUri().asString()); verify(view).setName(decisionComponent.getName()); verify(view).setFile(decisionComponent.getFileName()); }