### Question:
BooleanUtil { public static boolean valueOf(String value) { return (value != null) && (value.trim().equalsIgnoreCase("true") || value.trim().equals("1")); } private  BooleanUtil(); static boolean valueOf(String value); static boolean isNull(Object o); static boolean isNotNull(Object o);  }### Answer:
@Test public void valueOfTest() { Assert.assertTrue(BooleanUtil.valueOf("TruE")); Assert.assertTrue(BooleanUtil.valueOf("1")); Assert.assertFalse(BooleanUtil.valueOf("3")); Assert.assertFalse(BooleanUtil.valueOf("0")); Assert.assertFalse(BooleanUtil.valueOf("TTRUE")); Assert.assertFalse(BooleanUtil.valueOf("")); Assert.assertFalse(BooleanUtil.valueOf(null)); }