assertNull( transport.what );
assertNull( transport.recipient );
assertNull( transport.msg );
Message msg = constructAddMessage();
assertNull( msg.getMessageId() );
assertNull( msg.getInReplyTo() );
Mailbox mb = mmgr.transportCall( who, msg );
assertSame( transport.what, What.TRANSPORT_MESSAGE );
assertSame( transport.recipient, who );
assertSame( transport.msg, msg );
assertNotNull( mb );
assertEquals( 1, mmgr.size() );
assertNotNull( msg.getMessageId() );
assertNull( msg.getInReplyTo() );
assertSame( mb, mmgr.getMailbox( msg.getMessageId() ) );
mb.closeRead();
assertEquals( 0, mmgr.size() );
assertNull( mmgr.getMailbox( msg.getMessageId() ) );
}