### Question:
RSATokenVerifier { public static AccessToken getAccessToken(String tokenString, PublicKey publicKey, String realmUrl) throws VerificationException, TokenExpirationException { return RSATokenVerifier.create(tokenString).publicKey(publicKey).realmUrl(realmUrl).verify().getToken(); } private  RSATokenVerifier(String tokenString); static RSATokenVerifier create(String tokenString); static AccessToken getAccessToken(String tokenString, PublicKey publicKey, String realmUrl); static AccessToken getAccessToken(String tokenString, PublicKey publicKey, String realmUrl, boolean checkActive, boolean checkTokenType); RSATokenVerifier publicKey(PublicKey publicKey); RSATokenVerifier realmUrl(String realmUrl); RSATokenVerifier checkTokenType(boolean checkTokenType); RSATokenVerifier checkActive(boolean checkActive); RSATokenVerifier checkRealm(boolean checkRealmUrl); RSATokenVerifier parse(); AccessToken getToken(); JWSHeader getHeader(); RSATokenVerifier verify();  }### Answer:
@Test void getAccessToken() throws Exception { JwtTokenGenerator tokenGenerator = new JwtTokenGenerator("http: "configuration-service", Arrays.asList("USER_READ", "USER_WRITE")); String accessToken = tokenGenerator.generateJwtAccessToken(); AccessToken token = RSATokenVerifier.getAccessToken(accessToken, tokenGenerator.getIdpPair().getPublic(), "test-realm"); assertThat(token.getIssuer(), is("http: assertThat(token.getResourceAccess().size(), is(1)); assertThat(token.getResourceAccess().get("configuration-service").getRoles().contains("USER_READ"), is(true)); assertThat(token.getResourceAccess().get("configuration-service").getRoles().contains("USER_WRITE"), is(true)); }