@Test
public void testReleaseLockError(TestContext context) {

    Mockito.when(lock.releaseLock(anyString(), anyString())).thenReturn(Future.failedFuture("Booom"));
    LockUtil.releaseLock(lock, "someLock", "someToken", log);
    Mockito.verify(log, Mockito.times(1)).debug(Matchers.eq("Trying to release lock 'someLock' with token 'someToken'"));
    Mockito.verify(log, Mockito.times(1)).error(Matchers.eq("Could not release lock 'someLock'. Message: Booom"));
}