@Test
public void testAllFailed() {

    List<ListenableFuture<Boolean>> responses = Lists.newArrayList(Futures.<Boolean> immediateFailedFuture(new Exception()), Futures.<Boolean> immediateFailedFuture(new Exception()), Futures.<Boolean> immediateFailedFuture(new Exception()));
    ListenableFuture<Boolean> collector = majorityResponse(responses, Identity);
    assertFalse(Futures.getUnchecked(collector));
}