@Test
public void testAuthnContextClassRef() throws Exception {
Saml2Client client = getClient();
client.setComparisonType(AuthnContextComparisonTypeEnumeration.EXACT.toString());
client.setAuthnContextClassRef("urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport");
WebContext context = MockWebContext.create();
RedirectAction action = client.getRedirectAction(context, true, false);
assertTrue(getInflatedAuthnRequest(action.getLocation()).contains("<saml2p:RequestedAuthnContext Comparison=\"exact\"><saml2:AuthnContextClassRef xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml2:AuthnContextClassRef>"));
}