public char parseChar(String name) {
        String property = getProperties().getProperty(name);
        if (property.length() != 1) {
            throw new IllegalArgumentException(name + " property is't char");
        }
        return property.charAt(0);
    }
@Test
    public void testParseChar() {
        System.out.println("parseChar");
        char expResult;
        char result;

        Properties props = new Properties();
        props.put("value1", "b");
        props.put("value2", "c");
        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 = 'b';
        result = instance.parseChar("value1");
        assertEquals(expResult, result);

        expResult = 'c';
        result = instance.parseChar("value2");
        assertEquals(expResult, result);

        try {
            instance.parseChar("empty");
        } catch (IllegalArgumentException e) {
        }

        try {
            instance.parseChar("str");
        } catch (IllegalArgumentException e) {
        }

        try {
            instance.parseChar("boolean");
        } catch (IllegalArgumentException e) {
        }

        try {
            instance.parseChar("float");
        } catch (IllegalArgumentException e) {
        }

        try {
            instance.parseChar("int");
        } catch (IllegalArgumentException e) {
        }

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

        try {
            instance.parseChar("nonexistent");
            fail("no exception");
            assertEquals(expResult, result);
        } catch (NullPointerException e) {
        }
    }