assertEquals(exceptionIdentifier, fault.getExceptionIdentifier()) ;
assertNotNull(arjunaContext.getInstanceIdentifier()) ;
assertEquals(instanceIdentifier, arjunaContext.getInstanceIdentifier().getInstanceIdentifier()) ;
}
};
final CoordinatorCompletionCoordinatorProcessor coordinator = CoordinatorCompletionCoordinatorProcessor.getCoordinator() ;
coordinator.registerCallback(instanceIdentifier, callback) ;
try
{
CoordinatorCompletionCoordinatorClient.getClient().sendFault(addressingContext, new InstanceIdentifier("sender"), exceptionIdentifier) ;
callback.waitUntilTriggered() ;
}
finally
{
coordinator.removeCallback(instanceIdentifier) ;
}
assertTrue(callback.hasTriggered()) ;
assertFalse(callback.hasFailed()) ;
}