}
public void testLoadJsniMessage() throws IOException,
BrowserChannelException {
String jsni = "function foo() { }";
new LoadJsniMessage(channel, jsni).send();
MessageType type = channel.readMessageType();
assertEquals(MessageType.LOAD_JSNI, type);
LoadJsniMessage message = LoadJsniMessage.receive(channel);
assertEquals(jsni, message.getJsni());
}