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