.before("tx:before_prepare_replay", "tx:resume_prepare_replay");
advanceOnInterceptor(sequencer, newBackupOwnerCache, TransactionSynchronizerInterceptor.class,
matchCommand(CommitCommand.class).matchCount(1).build())
.before("sim:during_extra_commit");
final DummyTransactionManager transactionManager = (DummyTransactionManager) tm(0);
transactionManager.begin();
primaryOwnerCache.put(key, VALUE);
final DummyTransaction transaction = transactionManager.getTransaction();
TransactionTable transactionTable0 = TestingUtil.getTransactionTable(primaryOwnerCache);
final GlobalTransaction gtx = transactionTable0.getLocalTransaction(transaction).getGlobalTransaction();
transaction.runPrepare();
assertEquals("Wrong transaction status before killing backup owner.",
Status.STATUS_PREPARED, transaction.getStatus());