//test as a listener for events
PortListen notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, LISTENER_TIMEOUT );
// destroy the resource - a notification should get emitted!
m_stub.destroy( new Destroy( ) );
// wait for that termination notification
String incomingMessage = notificationListener.waitForIncomingMessage( );
//validate the incoming notification is really in there!