def METHOD_NAME(self):
    res = self.conn.filter_log_events(
        logGroupName=self.log_group_name,
        logStreamNames=[self.log_stream_name],
        limit=20,
        nextToken="invalid-token",
    )
    assert len(res["events"]) == 0
    assert "nextToken" not in res