@Test
public void testAllSuccess() {

  List<CompletableFuture<Boolean>> responses = Lists.newArrayList(
    completedFuture(Boolean.TRUE),
    completedFuture(Boolean.TRUE),
    completedFuture(Boolean.TRUE)
  );
  CompletableFuture<Boolean> collector = majorityResponse(responses, input -> input);
  assertTrue(Futures.getUnchecked(collector));
}