*/
private void checkDetails(CoordinatorCompletionParticipantDetails details, boolean hasFrom, boolean hasFaultTo, String messageId, InstanceIdentifier instanceIdentifier)
{
AddressingProperties inAddressingProperties = details.getAddressingProperties();
ArjunaContext inArjunaContext = details.getArjunaContext();
assertEquals(inAddressingProperties.getTo().getURI().toString(), TestUtil.coordinatorCompletionParticipantServiceURI);
assertNotNull(inAddressingProperties.getReplyTo());
assertTrue(AddressingHelper.isNoneReplyTo(inAddressingProperties));
if (hasFrom) {
assertNotNull(inAddressingProperties.getFrom());
assertEquals(inAddressingProperties.getFrom().getAddress().getURI().toString(), TestUtil.coordinatorCompletionCoordinatorServiceURI);
} else {
assertNull(inAddressingProperties.getFrom());
}
if (hasFaultTo) {
assertNotNull(inAddressingProperties.getFaultTo());
assertEquals(inAddressingProperties.getFaultTo().getAddress().getURI().toString(), TestUtil.coordinatorCompletionCoordinatorServiceURI);
} else {
assertNull(inAddressingProperties.getFrom());
}
assertNotNull(inAddressingProperties.getMessageID());
assertEquals(inAddressingProperties.getMessageID().getURI().toString(), messageId);
if (instanceIdentifier == null) {
assertNull(inArjunaContext);
} else {
assertNotNull(inArjunaContext) ;
assertEquals(instanceIdentifier.getInstanceIdentifier(), inArjunaContext.getInstanceIdentifier().getInstanceIdentifier()) ;
}
}