Op.saveTasks(saveTasks3),
Op.removeTasks(coalescedRemoves)));
control.replay();
StreamTransaction streamTransaction = createNoMessagesStreamManager().startTransaction();
// The next 2 saves should coalesce
streamTransaction.add(Op.saveTasks(saveTasks1));
streamTransaction.add(Op.saveTasks(saveTasks2));
streamTransaction.add(Op.removeTasks(removeTasks1));
streamTransaction.add(Op.saveTasks(saveTasks3));
// The next 2 removes should coalesce
streamTransaction.add(Op.removeTasks(removeTasks2));
streamTransaction.add(Op.removeTasks(removeTasks3));
assertEquals(position1, streamTransaction.commit());
}