Assert.assertNull(token2); request2 = LockRequest.builder(ImmutableSortedMap.of(lock, LockMode.READ)) .blockForAtMost(server.getLockServerOptions().getMaxAllowedBlockingDuration()).build(); token2 = server.lockWithFullLockResponse(client2, request2).getToken(); Assert.assertNotNull(token2); server.getLockServerOptions().getMaxAllowedBlockingDuration().toSeconds() + 10, TimeUnit.SECONDS); request2 = LockRequest.builder(ImmutableSortedMap.of( lock, LockMode.READ)).blockForAtMost(beyondMaxDuration).build();