public static boolean parseBooleanValue(String value, String name) {
        if (value.equalsIgnoreCase("ON")
                || value.equalsIgnoreCase("TRUE")
                || value.equalsIgnoreCase("1")) {
            return true;
        }
        if (value.equalsIgnoreCase("OFF")
                || value.equalsIgnoreCase("FALSE")
                || value.equalsIgnoreCase("0")) {
            return false;
        }
        ErrorReport.reportSemanticException(ErrorCode.ERR_INVALID_VALUE, name, value,
                "1, 0, on, off, true, or false (case insensitive)");
        return false;
    }
@Test
    public void testParseBooleanValueException() {
        expectedEx.expect(SemanticException.class);
        expectedEx.expectMessage(
                "Invalid var: 'tru'. Expected values should be 1, 0, on, off, true, or false (case insensitive)");
        ParseUtil.parseBooleanValue("tru", "var");
    }