public boolean toBoolean(String name) {
        return toBoolean(name, false);
    }
@Test
    public void testToBoolean_String() {
        System.out.println("toBoolean");
        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.toBoolean("value1");
        assertEquals(expResult, result);

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

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

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

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

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

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

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

        expResult = false;
        result = instance.toBoolean("nonexistent");
        assertEquals(expResult, result);
    }