EditScreen extends BaseModal { protected ModalConfigurationContext getConfigContext() { return this.configContext; } EditScreen(ModalConfigurationContext configContext,
                      List<String> availableWorkbenchScreensIds,
                      Command cleanupPlaceRequest); void show(); @Override void hide(); static String PROPERTY_EDITOR_KEY; }
@Test public void closeButtonClickHandlerTest() { modalHiddenHandler.onHidden(new ModalHiddenEvent(editScreen, new Event() { })); verify(editScreen.getConfigContext()).configurationCancelled(); verify(editScreen.getConfigContext(), never()).configurationFinished(); }