### Question:
DMNCardsGridComponent { @PostConstruct public void init() { cardsGridComponent.setEmptyState(emptyStateView.getElement()); } @Inject  DMNCardsGridComponent(final ManagedInstance<DMNCardComponent> dmnCardComponent,
                                 final ManagedInstance<PMMLCardComponent> pmmlCardComponent,
                                 final ManagedInstance<DefaultCardComponent> defaultCardComponent,
                                 final CardsGridComponent cardsGridComponent,
                                 final IncludedModelsPageState pageState,
                                 final DMNCardsEmptyStateView emptyStateView); @PostConstruct void init(); void refresh(); HTMLElement getElement();  }### Answer:
@Test public void testInit() { final HTMLElement element = mock(HTMLElement.class); when(emptyStateView.getElement()).thenReturn(element); grid.init(); verify(cardsGridComponent).setEmptyState(element); }