function expectAfterHide() {
  mockAfterHideHandler.handleEvent(new ArgumentMatcher(
      (arg) => arg.type == AbstractDialog.EventType.AFTER_HIDE));
}
Sets up the mock event handler to expect an AFTER_HIDE event.
@suppress {missingProperties} suppression added to enable type checking