public void testCreateChallenge() {
Packet challengePacket = challengeManager.createChallenge(message, session);
String packetBody = ((Message)challengePacket).getBody();
String challengeId = challengeManager.makeChallengeId(message);
Challenge challenge = challengeManager.getChallenge( message );
String challengeString = challenge.getChallenge();
assertEquals( "The chalenge must come from the original recipient", message.getTo(), challengePacket.getFrom() );
assertNotNull( "Challenge does not have extension", challengePacket.getExtension( ChallengeExtension.ELEMENT_NAME, ChallengeExtension.NAMESPACE ) );