AbstractPopupActivity extends AbstractActivity implements PopupActivity { @Override public void onOpen() { super.onOpen(); popup.addCloseHandler(new CloseHandler<PopupView>() { @Override public void onClose(CloseEvent<PopupView> event) { if (!placeManagerIsClosingUs) { try { popupAlreadyHiding = true; placeManager.closePlace(place); } finally { popupAlreadyHiding = false; } } } }); final IsWidget widget = getWidget(); popup.setContent(widget); popup.setSize(getSize()); popup.setTitle(getTitle()); popup.show(); } protected  AbstractPopupActivity(final PlaceManager placeManager,
                                    final PopupView popupView); @Override ResourceType getResourceType(); @Override abstract String getTitle(); @Override WorkbenchPopupSize getSize(); @Override IsWidget getTitleDecoration(); @Override abstract IsWidget getWidget(); @Override void onOpen(); @Override void onClose(); @Override boolean onMayClose();  }
@Test public void shouldShowViewInOnOpen() throws Exception { popupActivity.onStartup(popupPlace); popupActivity.onOpen(); verify(popupView, times(1)).show(); }