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