*/
public void test3_1()
throws Exception
{
final String conversationId = getConversationId() ;
final InteropWaitState state = new InteropWaitState(AtomicTransactionConstants.WSAT_ACTION_ABORTED, 2) ;
ProxyConversation.setConversationState(conversationId, state) ;
try
{
final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
final CoordinationContextType context = InteropUtil.createCoordinationContext(getSourceCoordinatorURI()) ;
getParticipantStub().phase2Rollback(serviceURI, context) ;
final CompletionCoordinatorParticipant participant = InteropUtil.registerCompletion(context, context.getIdentifier().getValue()) ;
participant.commit() ;
fail("Transaction rollback expected") ;
}
catch (final TransactionRolledBackException trbe)
{
state.waitForCompletion(0) ;
}
finally
{
ProxyConversation.clearConversationState(conversationId) ;
}
assertTrue("Conversation did not complete successfully", state.isSuccessful()) ;
}