def METHOD_NAME(self, env, result):
    """
    Tests the ability to reconnect a client within the testcase.
    After reconnection, the server accepts the new connection
    and assignes a new connection index for this client.
    """
    prev_idx = self._conn_idx["client1"]
    env.client1.reconnect()
    self._conn_idx["client1"] = env.server.accept_connection()
    new_idx = self._conn_idx["client1"]
    result.gt(new_idx, prev_idx, "Client has new connection index")
    msg = "Connection old index: {}, new index: {}".format(
        prev_idx, new_idx
    )
    bytes_sent = env.client1.send_text(msg)
    # Default conn_idx tp receive is the most recent.
    received = env.server.receive_text(size=bytes_sent)
    result.log(received)