code: public static Expectations successfullyReachedProtectedResourceWithJwtCookie(String testAction, String protectedUrl, String username, String issuerRegex) {
          Expectations expectations = new Expectations();
          expectations.addExpectations(successfullyReachedUrl(testAction, protectedUrl));
          expectations.addExpectations(getResponseTextExpectationsForJwtCookie(testAction, JwtFatConstants.JWT_COOKIE_NAME, username));
          expectations.addExpectations(getJwtPrincipalExpectations(testAction, username, issuerRegex));
          return expectations;
      }
docs: Sets expectations that will check:
  <ol>
  <li>Successfully reached the specified URL
  <li>Response text includes JWT cookie and principal information
  </ol>