public Map<Endpoint, CompletableFuture<Void>> futures() {
        return futures;
    }
@Test
    public void testAddReadinessFutures() {
        Map<Endpoint, CompletableFuture<Void>> bazFutures = new HashMap<>();
        bazFutures.put(EXTERNAL, new CompletableFuture<>());
        bazFutures.put(INTERNAL, new CompletableFuture<>());
        EndpointReadyFutures readyFutures = new EndpointReadyFutures.Builder().
                addReadinessFutures("baz", bazFutures).
                build(Optional.empty(), INFO);
        assertEquals(new HashSet<>(Arrays.asList(EXTERNAL, INTERNAL)),
                readyFutures.futures().keySet());
        assertIncomplete(readyFutures, EXTERNAL, INTERNAL);
        bazFutures.get(EXTERNAL).complete(null);
        assertComplete(readyFutures, EXTERNAL);
        assertIncomplete(readyFutures, INTERNAL);
        bazFutures.get(INTERNAL).complete(null);
        assertComplete(readyFutures, EXTERNAL, INTERNAL);
    }