@Test
public void testMajoritySuccess() {

    List<ListenableFuture<Boolean>> responses = Lists.newArrayList(Futures.<Boolean> immediateFuture(Boolean.FALSE), Futures.<Boolean> immediateFuture(Boolean.TRUE), Futures.<Boolean> immediateFuture(Boolean.TRUE));
    ListenableFuture<Boolean> collector = majorityResponse(responses, Identity);
    assertTrue(Futures.getUnchecked(collector));
}