def METHOD_NAME(self):
    # handle_stream may be a coroutine and any exception in its
    # Future will be logged.
    class TestServer(TCPServer):
        @gen.coroutine
        def handle_stream(self, stream, address):
            yield stream.read_bytes(len(b"hello"))
            stream.close()
            1 / 0
    server = client = None
    try:
        sock, port = bind_unused_port()
        server = TestServer()
        server.add_socket(sock)
        client = IOStream(socket.socket())
        with ExpectLog(app_log, "Exception in callback"):
            yield client.connect(("localhost", port))
            yield client.write(b"hello")
            yield client.read_until_close()
            yield gen.moment
    finally:
        if server is not None:
            server.stop()
        if client is not None:
            client.close()