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.
SaveHostAttributes hostAttributes1 = new SaveHostAttributes(new HostAttributes()
.setHost("host1")
.setMode(MaintenanceMode.DRAINED));
builder.add(createTransaction(Op.saveHostAttributes(hostAttributes1)));
SaveHostAttributes hostAttributes2 = new SaveHostAttributes(new HostAttributes()
.setHost("host2")
.setSlaveId("slave2")
.setMode(MaintenanceMode.DRAINED));
builder.add(createTransaction(Op.saveHostAttributes(hostAttributes2)));
expect(storageUtil.attributeStore.saveHostAttributes(
IHostAttributes.build(hostAttributes2.getHostAttributes()))).andReturn(true);
SaveLock saveLock = new SaveLock(new Lock().setKey(LockKey.job(JOB_KEY.newBuilder())));
builder.add(createTransaction(Op.saveLock(saveLock)));
storageUtil.lockStore.saveLock(ILock.build(saveLock.getLock()));