}.run();
}
@Test
public void testSaveLock() throws Exception {
final ILock lock = ILock.build(new Lock()
.setKey(LockKey.job(JobKeys.from("testRole", "testEnv", "testJob").newBuilder()))
.setToken("testLockId")
.setUser("testUser")
.setTimestampMs(12345L));
new MutationFixture() {
@Override
protected void setupExpectations() throws Exception {
storageUtil.expectWriteOperation();
storageUtil.lockStore.saveLock(lock);
streamMatcher.expectTransaction(Op.saveLock(new SaveLock(lock.newBuilder())))
.andReturn(position);
}
@Override
protected void performMutations(MutableStoreProvider storeProvider) {