public void testCreateLocalMessage_IncomingMessage() throws Exception {
TransportEvent event =
EventFactory.createMessageEvent(myTransport, "user", "comment123");
Date when = new Date();
event.setWhen(when.getTime());
LocalMessage localMessage = myFacade.createLocalMessageForIncomingEvent(event);
assertTrue("instance of Stacktracelocalmessage expected:" + localMessage.getClass().getName() ,
localMessage instanceof IncomingLocalMessage);
assertEquals("comment123", ((BaseLocalMessage) localMessage).getComment());
assertEquals(when, localMessage.getWhen());
}