public void testSAML2InvalidAfterConditions() throws Exception {
SAML2CallbackHandler callbackHandler = new SAML2CallbackHandler();
callbackHandler.setStatement(SAML2CallbackHandler.Statement.AUTHN);
callbackHandler.setIssuer("www.example.com");
ConditionsBean conditions = new ConditionsBean();
DateTime notBefore = new DateTime();
conditions.setNotBefore(notBefore.minusMinutes(5));
conditions.setNotAfter(notBefore.minusMinutes(3));
callbackHandler.setConditions(conditions);
SAMLParms samlParms = new SAMLParms();
samlParms.setCallbackHandler(callbackHandler);
AssertionWrapper assertion = new AssertionWrapper(samlParms);