@Test
public void testShouldCleanLock() throws IOException {

  ThemisLock lock = getLock(COLUMN);
  Mockito.when(mockRegister.isWorkerAlive(lock.getClientAddress())).thenReturn(true);
  Assert.assertFalse(lockCleaner.shouldCleanLock(lock));
  Mockito.when(mockRegister.isWorkerAlive(lock.getClientAddress())).thenReturn(false);
  Assert.assertTrue(lockCleaner.shouldCleanLock(lock));
}