### Question:
SqliteUtil { public static Boolean toBoolean(Integer intValue) { if (intValue == null) { return null; } if (FALSE.equals(intValue)) { return Boolean.FALSE; } return Boolean.TRUE; } private  SqliteUtil(); static void putIfNotNull(ContentValues values, String column,
            Object value); static Date loadDate(Cursor cursor, int index); static Boolean loadBoolean(Cursor cursor, int index); static Boolean toBoolean(Integer intValue); static ContentValues toContentValues(Map<String, Object> input); static Integer toInteger(Boolean boolValue); static Integer loadInteger(Cursor cursor, int index); static Long loadLong(Cursor cursor, int index); static final Integer FALSE; static final Integer TRUE; }### Answer:
@Test public void testToBoolean0() { assertEquals(Boolean.FALSE, SqliteUtil.toBoolean(0)); }
@Test public void testToBoolean1() { assertEquals(Boolean.TRUE, SqliteUtil.toBoolean(1)); }
@Test public void testToBooleanGt1() { assertEquals(Boolean.TRUE, SqliteUtil.toBoolean(10000000)); }
@Test public void testToBooleanLt0() { assertEquals(Boolean.TRUE, SqliteUtil.toBoolean(-1)); }
@Test public void testToBooleanNull() { assertNull(SqliteUtil.toBoolean(null)); }