code: public static Expectations getJwtPrincipalExpectations(String testAction, String user, String issuer) {
          Expectations expectations = new Expectations();
          expectations.addExpectation(new JwtExpectation(testAction, "token_type", JwtFatConstants.TOKEN_TYPE_BEARER));
          expectations.addExpectation(new JwtExpectation(testAction, "sub", user));
          expectations.addExpectation(new JwtExpectation(testAction, "upn", user));
          expectations.addExpectation(new JwtExpectation(testAction, "iss", issuer));
          return expectations;
      }
docs: Sets expectations that will check various claims within the subject JWT.