SaveTasks saveTasks = new SaveTasks(ImmutableSet.of(new ScheduledTask()));
builder.add(createTransaction(Op.saveTasks(saveTasks)));
storageUtil.taskStore.saveTasks(IScheduledTask.setFromBuilders(saveTasks.getTasks()));
RewriteTask rewriteTask = new RewriteTask("id1", new TaskConfig());
builder.add(createTransaction(Op.rewriteTask(rewriteTask)));
expect(storageUtil.taskStore.unsafeModifyInPlace(
rewriteTask.getTaskId(),
ITaskConfig.build(rewriteTask.getTask()))).andReturn(true);
RemoveTasks removeTasks = new RemoveTasks(ImmutableSet.of("taskId1"));
builder.add(createTransaction(Op.removeTasks(removeTasks)));
storageUtil.taskStore.deleteTasks(removeTasks.getTaskIds());