public static boolean valueToBoolean(int value) {
        if (TRUE == value) {
            return true;
        } else if (FALSE == value) {
            return false;
        } else {
            throw new RuntimeException("Boolean value error, must be 0 or 1");
        }
    }
@Test
    public void testValueToBoolean() {
        assertEquals(1, BooleanUtils.booleanToValue(true));
        assertEquals(0, BooleanUtils.booleanToValue(false));
    }