function simulateCloseEvent(channel) {
  assertNotNull(channel.getHandler());
  channel.getHandler().channelClosed(channel);
}
Simulates the WebChannelBase firing the close event for the given channel.
@param {!WebChannelBase} channel The WebChannelBase.