public void testResponseGeneration() throws Exception
{
assertNotNull("processor != null");
String response = processor.generateAuthResponse(ASSERTING_PARTY,USERNAME, true);
assertNotNull("response != null", response);
AuthResponse authResponse = processor.parseAuthResponse(response);
assertNotNull("authResponse != null", authResponse);
assertTrue("AP ==" + ASSERTING_PARTY,
authResponse.getAssertingParty().equals(ASSERTING_PARTY));
assertTrue(" USERNAME==" + USERNAME,
authResponse.getUser().getUserName().equals(USERNAME));
assertNotNull("Asserting token != null", authResponse.getAssertToken());
assertTrue("authenticated?", authResponse.isAuthenticated());
}