public EtcdClient(final Client client) {
        this.client = client;
    }
@Test
    public void testEtcdClient() throws ExecutionException, InterruptedException {
        final Client client = mock(Client.class);
        final EtcdClient etcdClient = new EtcdClient(client);
        assertDoesNotThrow(etcdClient::close);
        final KV mockKV = mock(KV.class);
        when(client.getKVClient()).thenReturn(mockKV);
        final CompletableFuture<GetResponse> future = mock(CompletableFuture.class);
        when(mockKV.get(any(ByteSequence.class))).thenReturn(future);
        doThrow(new InterruptedException()).when(future).get();
        assertDoesNotThrow(() -> etcdClient.get("key"));
    }