def METHOD_NAME(self):
    token = ClientCapabilityToken(
        "AC123",
        "XXXXX",
        allow_client_outgoing={"application_sid": "AP123", "param1": "val1"},
    )
    outgoing_uri = "scope:client:outgoing?appParams=param1%3Dval1&appSid=AP123"
    result = Jwt.from_jwt(token.to_jwt(), "XXXXX")
    self.assertEqual(outgoing_uri, result.payload["scope"])