@Test
public void testOnValue() {

    final AtomicInteger latch = new AtomicInteger(0);
    final Map<String, Integer> refMap = new LinkedHashMap<>();
    refMap.put("one", 1);
    refMap.put("two", 2);
    refMap.put("three", 3);
    refMap.entrySet().forEach(onValue(latch::addAndGet));
    assertEquals("onValue should add 1, 2, and 3 (6) to latch", 6, latch.get());
}