def METHOD_NAME(self, env, result):
    """Testcase using server and client objects from the environment."""
    message = "This is a test message"
    env.server.accept_connection()
    size = env.client.send(bytes(message.encode("utf-8")))
    received = env.server.receive(size)
    result.log(
        "Received Message from server: {}".format(received),
        description="Log a message",
    )
    result.equal(
        received.decode("utf-8"), message, description="Expect a message"
    )