    @Test
    public void testEtcdLeaseIsAvailable() throws ExecutionException, InterruptedException {

        Client client = Client.builder()
                .endpoints(container.clientEndpoint())
                .build();
        HeartbeatProperties heartbeatProperties = new HeartbeatProperties();
        heartbeatProperties.setInterval(5);
        EtcdHeartbeatLease heartbeatLease = new EtcdHeartbeatLease(client, heartbeatProperties);
        Long leaseId = heartbeatLease.getLeaseId();
        assertNotNull(leaseId);
        LeaseTimeToLiveResponse leaseTimeToLiveResponse =
                client.getLeaseClient().timeToLive(leaseId, LeaseOption.DEFAULT).get();
        Thread.sleep(10);
        assertEquals(leaseTimeToLiveResponse.getGrantedTTL(), heartbeatProperties.getInterval());
        assertTrue(leaseTimeToLiveResponse.getTTl() > 0);
        assertTrue(leaseTimeToLiveResponse.getTTl() < heartbeatProperties.getInterval());
    }