public char toChar(String name) {
        return toChar(name, '\u0000');
    }
@Test
    public void testToChar_String_char() {
        System.out.println("toChar");
        char expResult;
        char result;

        Properties props = new Properties();
        props.put("value1", "f");
        props.put("value2", "w");
        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 = 'f';
        result = instance.toChar("value1", 't');
        assertEquals(expResult, result);

        expResult = 'w';
        result = instance.toChar("value2", 't');
        assertEquals(expResult, result);

        expResult = 't';
        result = instance.toChar("empty", 't');
        assertEquals(expResult, result);

        expResult = 't';
        result = instance.toChar("str", 't');
        assertEquals(expResult, result);

        expResult = 't';
        result = instance.toChar("boolean", 't');
        assertEquals(expResult, result);

        expResult = 't';
        result = instance.toChar("float", 't');
        assertEquals(expResult, result);

        expResult = 't';
        result = instance.toChar("int", 't');
        assertEquals(expResult, result);

        expResult = 'a';
        result = instance.toChar("char", 't');
        assertEquals(expResult, result);

        expResult = 't';
        result = instance.toChar("nonexistent", 't');
        assertEquals(expResult, result);
    }