final int currentTopologyId = TestingUtil.extractComponentRegistry(primaryOwnerCache).getStateTransferManager().getCacheTopology().getTopologyId();
Future<Object> secondCommitFuture = fork(new Callable<Object>() {
@Override
public Object call() throws Exception {
// Wait for the commit command to block replaying the prepare on the new backup
sequencer.advance("sim:before_extra_commit");
// And try to run another commit command
CommitCommand command = new CommitCommand(newBackupOwnerCache.getName(), gtx);
command.setTopologyId(currentTopologyId);
CommandsFactory cf = TestingUtil.extractCommandsFactory(newBackupOwnerCache);
cf.initializeReplicableCommand(command, true);