RegistrationCoordinatorClient.getClient().sendRegister(addressingContext, protocolIdentifier, participantProtocolService) ;
final RegisterDetails details = testRegistrationCoordinatorProcessor.getRegisterDetails(messageId, 10000) ;
final RegisterType requestRegister = details.getRegister() ;
final AddressingContext requestAddressingContext = details.getAddressingContext() ;
final ArjunaContext requestArjunaContext = details.getArjunaContext() ;
assertEquals(requestAddressingContext.getTo().getValue(), registrationCoordinatorService.getAddress().getValue());
assertEquals(requestAddressingContext.getFrom().getAddress().getValue(), registrationRequesterService.getAddress().getValue());
assertEquals(requestAddressingContext.getReplyTo().getAddress().getValue(), registrationRequesterService.getAddress().getValue());
assertEquals(requestAddressingContext.getMessageID().getValue(), messageId);
if (instanceIdentifier == null)
{
assertNull(requestArjunaContext.getInstanceIdentifier()) ;
}
else
{
assertEquals(instanceIdentifier.getInstanceIdentifier(), requestArjunaContext.getInstanceIdentifier().getInstanceIdentifier()) ;
}
assertEquals(protocolIdentifier, requestRegister.getProtocolIdentifier().getValue()) ;
assertEquals(participantProtocolService.getAddress().getValue(),
requestRegister.getParticipantProtocolService().getAddress().getValue()) ;