final String messageId = "testSendFault" ;
final InstanceIdentifier instanceIdentifier = new InstanceIdentifier("8") ;
W3CEndpointReference endpoint = TestUtil.getParticipantCompletionCoordinatorEndpoint(instanceIdentifier.getInstanceIdentifier());
final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(TestUtil.participantCompletionCoordinatorServiceURI, messageId) ;
final State state = State.STATE_FAILING_ACTIVE;
ParticipantCompletionCoordinatorClient.getClient().sendFail(endpoint, addressingProperties, new InstanceIdentifier("sender"), state.getValue()); ;
final ParticipantCompletionCoordinatorDetails details = testParticipantCompletionCoordinatorProcessor.getParticipantCompletionCoordinatorDetails(messageId, 10000) ;
assertNotNull(details.hasFault());
assertEquals(details.hasFault().getExceptionIdentifier(), state.getValue()) ;
checkDetails(details, true, true, messageId, instanceIdentifier);
}