### Question:
BaseCardComponent implements CardComponent { public void setup(final DMNCardsGridComponent grid, final R includedModel) { this.grid = grid; this.includedModel = includedModel; refreshView(); } BaseCardComponent(final V contentView,
                             final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void init(); void setup(final DMNCardsGridComponent grid,
                      final R includedModel); @Override HasCssName getIcon(); @Override String getTitle(); @Override String getUUID(); @Override HTMLElement getContent(); @Override Function<String, Boolean> onTitleChanged(); void remove();  }### Answer:
@Test public void testSetup() { final DMNCardsGridComponent expectedGrid = mock(DMNCardsGridComponent.class); final R expectedIncludedModel = mock(getActiveRecordClass()); when(expectedIncludedModel.getNamespace()).thenReturn(": card.setup(expectedGrid, expectedIncludedModel); final DMNCardsGridComponent actualGrid = card.getGrid(); final BaseIncludedModelActiveRecord actualIncludedModel = card.getIncludedModel(); verify(card).refreshView(); assertEquals(expectedGrid, actualGrid); assertEquals(expectedIncludedModel, actualIncludedModel); }