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 shouldThrowIfValueIsNotZeroOrOne() {
        assertThrows(RuntimeException.class, () -> BooleanUtils.valueToBoolean(123));
    }