public function addJwtToken($name, $secret, PyStringNode $payload) {
        $jwtMatcher = $this->arrayContainsComparator->getMatcherFunction('jwt');

        if (!($jwtMatcher instanceof JwtMatcher)) {
            throw new RuntimeException(sprintf(
                'Matcher registered for the @jwt() matcher function must be an instance of %s',
                JwtMatcher::class
            ));
        }

        $jwtMatcher->addToken($name, $this->jsonDecode((string) $payload), $secret);

        return $this;
    }