### Question:
CardFrameComponent { public void enableEditMode() { getGrid().enableReadOnlyModeForAllCards(); getView().enableEditMode(); } @Inject  CardFrameComponent(final View view); void initialize(final CardsGridComponent grid,
                           final CardComponent card); HTMLElement getElement(); void refreshView(); void enableEditMode(); void enableReadOnlyMode(); View getView();  }### Answer:
@Test public void testEnableEditMode() { doReturn(grid).when(cardFrame).getGrid(); cardFrame.enableEditMode(); verify(grid).enableReadOnlyModeForAllCards(); verify(view).enableEditMode(); }