serverToClient.getInputStream(), clientToServer.getOutputStream());
new CheckVersionsMessage(client, 2, 2,
HostedHtmlVersion.EXPECTED_GWT_ONLOAD_VERSION).send();
MessageType type = client.readMessageType();
assertEquals(MessageType.PROTOCOL_VERSION, type);
ProtocolVersionMessage protocolMessage = ProtocolVersionMessage.receive(
client);
assertEquals(2, protocolMessage.getProtocolVersion());
new LoadModuleMessage(client, "url", "tabkey", "session", "testModule",
"userAgent").send();
type = client.readMessageType();
assertEquals("testModule", handler.getModuleName());
assertEquals("userAgent", handler.getUserAgent());