def METHOD_NAME():
    """Assert that the payment token can be extracted from the Queue delivered Msg."""
    import stan.pb.protocol_pb2 as protocol
    from stan.aio.client import Msg
    from entity_pay.worker import extract_payment_token
    # setup
    token = {'paymentToken': {'id': 1234, 'statusCode': 'COMPLETED'}}
    msg = Msg()
    msg.proto = protocol.MsgProto
    msg.proto.data = json.dumps(token).encode('utf-8')
    # test and verify
    assert extract_payment_token(msg) == token