@Test
public void testRemoveAwaitingMessages() {

	Assert.assertEquals( 0, this.ma.getScopedInstanceToAwaitingMessages().size());
	Assert.assertEquals( 0, this.ma.removeAwaitingMessages( new Instance( "whatever" )).size());
	Instance rootInstance = new Instance( "root" );
	this.ma.storeAwaitingMessage( rootInstance, new MsgCmdSendInstances());
	Assert.assertEquals( 1, this.ma.getScopedInstanceToAwaitingMessages().size());
	Assert.assertEquals( 1, this.ma.removeAwaitingMessages( rootInstance ).size());
	Assert.assertEquals( 0, this.ma.getScopedInstanceToAwaitingMessages().size());
	Assert.assertEquals( 0, this.ma.removeAwaitingMessages( rootInstance ).size());
}