Connector connector=createConnector();
JUnitMessageListener l1=new JUnitMessageListener();
JUnitMessageListener l2=new JUnitMessageListener();
connector.addMessageListener(l1);
connector.addMessageListener(l2);
connector.messageReceived(new MessageEvent(HELLO_WORLD));
assertEquals(HELLO_WORLD,l1.getMessage());
assertEquals(HELLO_WORLD,l2.getMessage());
}