@Test public void shouldHandleUnsuccessfulLockResponses() { when(timelock.lock(any())).thenReturn(ConjureLockResponse.unsuccessful(UnsuccessfulLockResponse.of())); LockResponse clientResponse = lockLeaseService.lock(lockRequest); assertThat(clientResponse.wasSuccessful()).isFalse(); }
LockResponse lock(LockRequest request) { return lockService.lock(request); }
LockLeaseService { LockResponse lock(LockRequest request) { return lockService.lock(request); } }
LockLeaseService { LockResponse lock(LockRequest request) { return lockService.lock(request); } @VisibleForTesting  LockLeaseService(
            NamespacedConjureTimelockService delegate,
            UUID clientId); }
LockLeaseService { LockResponse lock(LockRequest request) { return lockService.lock(request); } @VisibleForTesting  LockLeaseService(
            NamespacedConjureTimelockService delegate,
            UUID clientId);  }
LockLeaseService { LockResponse lock(LockRequest request) { return lockService.lock(request); } @VisibleForTesting  LockLeaseService(
            NamespacedConjureTimelockService delegate,
            UUID clientId);   }