@Test
public void testAllFailed() {

  List<CompletableFuture<Boolean>> responses = Lists.newArrayList(
    failedFuture(new Exception()),
    failedFuture(new Exception()),
    failedFuture(new Exception())
  );
  CompletableFuture<Boolean> collector = majorityResponse(responses, input -> input);
  assertFalse(Futures.getUnchecked(collector));
}