def METHOD_NAME(self):
    """Duplicate NAS Response Messages Test Case"""
    # Ground work.
    self._s1ap_wrapper.configUEDevice(1)
    req = self._s1ap_wrapper.ue_req
    max_nas_msg_retransmission = 4
    # Trigger Attach Request
    attach_req = s1ap_types.ueAttachRequest_t()
    sec_ctxt = s1ap_types.TFW_CREATE_NEW_SECURITY_CONTEXT
    id_type = s1ap_types.TFW_MID_TYPE_IMSI
    eps_type = s1ap_types.TFW_EPS_ATTACH_TYPE_EPS_ATTACH
    attach_req.ue_Id = req.ue_id
    attach_req.mIdType = id_type
    attach_req.epsAttachType = eps_type
    attach_req.useOldSecCtxt = sec_ctxt
    print("*** Triggering Attach Request ***")
    self._s1ap_wrapper._s1_util.issue_cmd(
        s1ap_types.tfwCmd.UE_ATTACH_REQUEST,
        attach_req,
    )
    # Waiting for Authentication Request
    # Wait for last Timer T3460 Expiry
    for i in range(max_nas_msg_retransmission):
        print(
            "*** Waiting for Authentication Request Message (",
            str(i + 1),
            ") ***",
        )
        response = self._s1ap_wrapper.s1_util.get_response()
        assert response.msg_type == s1ap_types.tfwCmd.UE_AUTH_REQ_IND.value
        print(
            "*** Authentication Request Message Received (",
            str(i + 1),
            ") ***",
        )
    # Trigger Authentication Response
    auth_res = s1ap_types.ueAuthResp_t()
    auth_res.ue_Id = req.ue_id
    sqn_recvd = s1ap_types.ueSqnRcvd_t()
    sqn_recvd.pres = 0
    auth_res.sqnRcvd = sqn_recvd
    for i in range(max_nas_msg_retransmission):
        print(
            "*** Sending Authentication Response Message (",
            str(i + 1),
            ") ***",
        )
        self._s1ap_wrapper._s1_util.issue_cmd(
            s1ap_types.tfwCmd.UE_AUTH_RESP,
            auth_res,
        )
    # Waiting for Security mode command
    # Wait for last Timer T3460 Expiry
    for i in range(max_nas_msg_retransmission):
        print(
            "*** Waiting for Security Mode Command Message (",
            str(i + 1),
            ") ***",
        )
        response = self._s1ap_wrapper.s1_util.get_response()
        assert response.msg_type == s1ap_types.tfwCmd.UE_SEC_MOD_CMD_IND.value
        print(
            "*** Security Mode Command Message Received (",
            str(i + 1),
            ") ***",
        )
    # Trigger Security Mode Complete
    sec_mode_complete = s1ap_types.ueSecModeComplete_t()
    sec_mode_complete.ue_Id = req.ue_id
    for i in range(max_nas_msg_retransmission):
        print(
            "*** Sending Security Mode Complete Message (",
            str(i + 1),
            ") ***",
        )
        self._s1ap_wrapper._s1_util.issue_cmd(
            s1ap_types.tfwCmd.UE_SEC_MOD_COMPLETE,
            sec_mode_complete,
        )
    # Attach accept will be sent in ICSR only for the first time
    # Re-transmitted Attach Accept will be sent in DL NAS transport
    # Receive initial context setup and attach accept indication
    response = (
        self._s1ap_wrapper._s1_util
            .receive_initial_ctxt_setup_and_attach_accept()
    )
    attach_acc = response.cast(s1ap_types.ueAttachAccept_t)
    print(
        "********************** Received attach accept in ICSR for UE Id:",
        attach_acc.ue_Id,
    )
    # Waiting for Attach accept
    # Wait for last Timer T3450 Expiry
    for i in range(max_nas_msg_retransmission):
        print(
            "*** Waiting for Attach Accept Message (",
            str(i + 1),
            ") ***",
        )
        response = self._s1ap_wrapper.s1_util.get_response()
        assert response.msg_type == s1ap_types.tfwCmd.UE_ATTACH_ACCEPT_IND.value
        print(
            "*** Attach Accept Message Received in DL NAS transport msg (",
            str(i + 1),
            ") ***",
        )
    # Trigger Attach Complete
    attach_complete = s1ap_types.ueAttachComplete_t()
    attach_complete.ue_Id = req.ue_id
    for i in range(max_nas_msg_retransmission):
        print(
            "*** Sending Attach Complete Message (",
            str(i + 1),
            ") ***",
        )
        self._s1ap_wrapper._s1_util.issue_cmd(
            s1ap_types.tfwCmd.UE_ATTACH_COMPLETE,
            attach_complete,
        )
    print("*** Running UE detach ***")
    # Now detach the UE
    detach_req = s1ap_types.uedetachReq_t()
    detach_req.ue_Id = req.ue_id
    detach_req.ueDetType = s1ap_types.ueDetachType_t.UE_NORMAL_DETACH.value
    self._s1ap_wrapper._s1_util.issue_cmd(
        s1ap_types.tfwCmd.UE_DETACH_REQUEST,
        detach_req,
    )