assertEquals(assertion, grant.getJWTAssertion());
assertEquals(assertion.serialize(), grant.getAssertion());
Map<String,String> params = grant.toParameters();
assertEquals(GrantType.JWT_BEARER.getValue(), params.get("grant_type"));
assertEquals(assertion.serialize(), params.get("assertion"));
assertEquals(2, params.size());
grant = JWTBearerGrant.parse(params);
assertEquals(GrantType.JWT_BEARER, grant.getType());
assertEquals(assertion.serialize(), grant.getAssertion());