function simulateMessageEvent(channel, data) {
  assertNotNull(channel.getHandler());
  channel.getHandler().channelHandleArray(channel, data);
}
Simulates the WebChannelBase firing the message event for the given channel.
@param {!WebChannelBase} channel The WebChannelBase.
@param {!Object} data The message data array.