* Test that creates, sends and processes an unsigned SAML 1.1 authentication assertion
* with a custom Conditions statement.
*/
@org.junit.Test
public void testSAML1Conditions() throws Exception {
SAML1CallbackHandler callbackHandler = new SAML1CallbackHandler();
callbackHandler.setStatement(SAML1CallbackHandler.Statement.AUTHN);
callbackHandler.setIssuer("www.example.com");
ConditionsBean conditions = new ConditionsBean();
DateTime notBefore = new DateTime();
conditions.setNotBefore(notBefore);
conditions.setNotAfter(notBefore.plusMinutes(20));
callbackHandler.setConditions(conditions);
SAMLCallback samlCallback = new SAMLCallback();
SAMLUtil.doSAMLCallback(callbackHandler, samlCallback);
SamlAssertionWrapper samlAssertion = new SamlAssertionWrapper(samlCallback);