    @Test
    public void getDoneUncheckedThrowsForIncompleteFuture() {

        ListeningExecutorService executorService =
                MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());

        CountDownLatch latch = new CountDownLatch(1);

        ListenableFuture<String> future = executorService.submit(() -> {
            latch.await(1, TimeUnit.MINUTES);

            return null;
        });

        assertThatThrownBy(() -> MoreFutures.getDoneUnchecked(future))
                .isInstanceOf(IllegalStateException.class);

        latch.countDown();
    }