ServiceContext sessionContext = sgc.getServiceContext("TempSC");
MessageContext messageContext1 = this.getBasicMessageContext();
messageContext1.setMessageID(
UUIDGenerator.getUUID());
OperationDescription axisOperation = new OperationDescription(
new QName("test"));
OperationContext operationContext1 = axisOperation.findOperationContext(
messageContext1, sessionContext);
MessageContext messageContext2 = this.getBasicMessageContext();
messageContext2.setMessageID(
UUIDGenerator.getUUID());
messageContext2.getMessageInformationHeaders().setRelatesTo(
new RelatesTo(messageContext1.getMessageID()));
OperationContext operationContext2 = axisOperation.findOperationContext(
messageContext2, sessionContext);
assertEquals(operationContext1, operationContext2);
}