public boolean parseBoolean(String name) {
        String property = getProperties().getProperty(name);
        if (property == null) {
            throw new IllegalArgumentException();
        }
        return Boolean.parseBoolean(property);
    }
@Test
    public void testParseBoolean() {
        System.out.println("parseBoolean");
        boolean expResult;
        boolean result;

        Properties props = new Properties();
        props.put("value1", "true");
        props.put("value2", "false");
        props.put("empty", "");
        props.put("str", "abc");
        props.put("boolean", "true");
        props.put("float", "24.98");
        props.put("int", "12");
        props.put("char", "a");
        PropertyParser instance = new PropertyParser(props);

        expResult = true;
        result = instance.parseBoolean("value1");
        assertEquals(expResult, result);

        expResult = false;
        result = instance.parseBoolean("value2");
        assertEquals(expResult, result);

        expResult = false;
        result = instance.parseBoolean("empty");
        assertEquals(expResult, result);

        expResult = false;
        result = instance.parseBoolean("str");
        assertEquals(expResult, result);

        expResult = true;
        result = instance.parseBoolean("boolean");
        assertEquals(expResult, result);

        expResult = false;
        result = instance.parseBoolean("float");
        assertEquals(expResult, result);

        expResult = false;
        result = instance.parseBoolean("int");
        assertEquals(expResult, result);

        expResult = false;
        result = instance.parseBoolean("char");
        assertEquals(expResult, result);

        try {
            expResult = false;
            result = instance.parseBoolean("nonexistent");
            fail("no exception");
            assertEquals(expResult, result);
        } catch (IllegalArgumentException e) {
        }
    }