@Test public void testLift() { final Promise<Integer> p1 = promise(3), p2 = promise(4); final Promise<Integer> p3 = lift(addInts).f(p1, p2); assertEquals(7, (int) p3.claim()); final List<Integer> list = list(1, 2, 3, 4); final List<Promise<Integer>> pList = list.map(Promises.<Integer>promise()); Promise<Integer> p4 = pList.foldLeft(lift(addInts), promise(0)); assertEquals(10, (int) p4.claim()); assertEquals( 10, (int) Promise.foldRight(Strategies.sequential, curry(addInts), 0).f(list).claim()); }