def test_reply_to_engine(self):
     self._amqp()
     participant = Participant("bar", "localhost", 
                               "guest", "guest", "/")
     class WorkitemStub:
         @property
         def to_dict(self):
             return {"foo" : "bar"} 
     participant.workitem = WorkitemStub()
     participant.reply_to_engine()        
     self.channel.wait()