### Question:
ContainerConfigPopup extends BaseOkCancelPopup { @Override protected void onCancel() { super.onCancel(); onCancelCommand.execute(); } @Inject  ContainerConfigPopup(final View view,
                                final ContainerConfigPresenter configPresenter); @PostConstruct @Override void init(); void show(final String title,
                     final ParameterizedCommand<ContainerConfig> onSuccessCommand,
                     final Command onCancelCommand,
                     final List<String> alreadyInUseNames);  }### Answer:
@Test public void testOnCancel() { popup.show(TITLE, okCommand, cancelCommand, alreadyInUseNames); popup.onCancel(); verify(configPresenter, never()).validateForSubmit(); verify(basePopupView, times(1)).hide(); verify(cancelCommand, times(1)).execute(); }