}
public void testSerialisation()
throws Exception
{
final Call call = new Call() ;
call.setAction(new URI("urn:action")) ;
call.setFaultTo(getEPR("urn:faultTo", "faultToTag", "faultToValue")) ;
call.setFrom(getEPR("urn:from", "fromTag", "fromValue")) ;
call.setMessageID(new URI("urn:messageID")) ;
call.setRelatesTo(new URI("urn:relatesTo")) ;
call.setReplyTo(getEPR("urn:replyTo", "replyToTag", "replyToValue")) ;
call.setTo(getEPR("urn:to", "toTag", "toValue")) ;
final String content = CallImpl.toXML(call) ;
final Call result = CallImpl.fromXML(content) ;
assertEquals("Action URI", call.getAction(), result.getAction()) ;
assertEquals("FaultTo EPR", call.getFaultTo(), result.getFaultTo()) ;
assertEquals("From EPR", call.getFrom(), result.getFrom()) ;
assertEquals("MessageID URI", call.getMessageID(), result.getMessageID()) ;
assertEquals("RelatesTo URI", call.getRelatesTo(), result.getRelatesTo()) ;
assertEquals("ReplyTo URI", call.getReplyTo(), result.getReplyTo()) ;
assertEquals("To URI", call.getTo(), result.getTo()) ;
}