### Question:
CardFrameComponent { public void enableReadOnlyMode() { refreshView(); } @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 testEnableReadOnlyMode() { doNothing().when(cardFrame).refreshView(); cardFrame.enableReadOnlyMode(); verify(cardFrame).refreshView(); }