@Override @Test public void ifPresentApply() { MutableMap<Integer, String> map = new SingletonMap<Integer, String>(1, "1"); Assert.assertNull(map.ifPresentApply(4, Functions.<String>getPassThru())); Assert.assertEquals("1", map.ifPresentApply(1, Functions.<String>getPassThru())); }