assertEquals(moduleName, message.getModuleName());
assertEquals(userAgent, message.getUserAgent());
// create a separate channel so we don't cause problems with partial
// messages written to the stream
TemporaryBufferStream tempBufferStream = new TemporaryBufferStream();
TestBrowserChannel trashableChannel = new TestBrowserChannel(
tempBufferStream.getInputStream(),
tempBufferStream.getOutputStream());
try {
new LoadModuleMessage(trashableChannel, null, tabKey, sessionKey, moduleName,
userAgent).send();
fail("Expected exception with null url");