### Question:
CardsGridComponent { public HTMLElement getElement() { return view.getElement(); } @Inject  CardsGridComponent(final View view,
                              final ManagedInstance<CardFrameComponent> cardFrameInstances); void setupCards(final List<CardComponent> cards); void setEmptyState(final HTMLElement emptyStateElement); void enableReadOnlyModeForAllCards(); HTMLElement getElement();  }### Answer:
@Test public void testGetElement() { final HTMLElement expectedElement = mock(HTMLElement.class); when(view.getElement()).thenReturn(expectedElement); final HTMLElement actualElement = cardsGrid.getElement(); assertEquals(expectedElement, actualElement); }