### Question:
BooleanUtil { public static boolean ifTrue(final Boolean bool, final Runnable runnable) { if (isTrue(bool)) { runnable.run(); return true; } return false; } private  BooleanUtil(); static boolean ifTrue(final Boolean bool, final Runnable runnable); static boolean isTrueOrNull(final Boolean b); static boolean isFalseOrNull(final Boolean b); static boolean isTrue(final Boolean b); static boolean isFalse(final Boolean b); static boolean isTrue(final String str);  }### Answer:
@Test public void testIfTrue() { assertFalse(BooleanUtil.ifTrue(null, () -> assertTrue(false))); assertFalse(BooleanUtil.ifTrue(Boolean.FALSE, () -> assertTrue(false))); assertTrue(BooleanUtil.ifTrue(Boolean.TRUE, () -> assertTrue(true))); }