RemoveTasks removeTasks = new RemoveTasks(ImmutableSet.of("taskId1"));
builder.add(createTransaction(Op.removeTasks(removeTasks)));
storageUtil.taskStore.deleteTasks(removeTasks.getTaskIds());
SaveQuota saveQuota = new SaveQuota(JOB_KEY.getRole(), new ResourceAggregate());
builder.add(createTransaction(Op.saveQuota(saveQuota)));
storageUtil.quotaStore.saveQuota(
saveQuota.getRole(),
IResourceAggregate.build(saveQuota.getQuota()));
builder.add(createTransaction(Op.removeQuota(new RemoveQuota(JOB_KEY.getRole()))));
storageUtil.quotaStore.removeQuota(JOB_KEY.getRole());
// This entry lacks a slave ID, and should therefore be discarded.