expectedClaims.add(ClaimTypes.FIRSTNAME);
expectedClaims.add(ClaimTypes.LASTNAME);
expectedClaims.add(ClaimTypes.EMAILADDRESS);
ClaimCollection retrievedClaims =
claimsHandler.retrieveClaimValues(new CustomTokenPrincipal(user), requestedClaims);
Assert.isTrue(
retrievedClaims.size() == expectedClaims.size(),
"Retrieved number of claims [" + retrievedClaims.size()
+ "] doesn't match with expected [" + expectedClaims.size() + "]"