@Test
public void testConsumeSync(){

    FutureWithTrigger<AtomicBoolean> futureWithTrigger = new FutureWithTrigger<>();
    futureWithTrigger.getFuture().consume(b->b.set(true));
    AtomicBoolean test = new AtomicBoolean(false);
    Triggerer.triggerValue(test, futureWithTrigger);
    assertTrue(test.get());
}