def METHOD_NAME(self):
    token = ClientCapabilityToken("AC123", "XXXXX")
    token.allow_event_stream(foobar="hey")
    event_uri = (
        "scope:stream:subscribe?params=foobar%3Dhey&path=%2F2010-04-01%2FEvents"
    )
    assert token.payload["scope"] == event_uri