def METHOD_NAME(self):
    #
    # Test integration with asyncio-eventloops. Use a trivial echo server
    # and test a simple ping/pong roundtrip.
    #
    loop = asyncio.new_event_loop()
    def echo(socket):
        msg = socket.recv()
        socket.send(msg[0])
        loop.stop()
    self.client.send({})
    loop.add_reader(self.server, echo, self.server)
    loop.run_forever()
    loop.close()
    msg = self.client.recv()
    assert msg[0] == {}