public String parseString(String name) {
        String property = getProperties().getProperty(name);
        if (property == null) {
            throw new NullPointerException();
        }
        return property;
    }
@Test
    public void testParseString() {
        System.out.println("parseString");
        String expResult;
        String result;

        Properties props = new Properties();
        props.put("value1", "sTr1");
        props.put("value2", "str_2");
        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 = "sTr1";
        result = instance.parseString("value1");
        assertEquals(expResult, result);

        expResult = "str_2";
        result = instance.parseString("value2");
        assertEquals(expResult, result);

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

        expResult = "abc";
        result = instance.parseString("str");
        assertEquals(expResult, result);

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

        expResult = "24.98";
        result = instance.parseString("float");
        assertEquals(expResult, result);

        expResult = "12";
        result = instance.parseString("int");
        assertEquals(expResult, result);

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

        try {
            instance.parseString("nonexistent");
            fail("no exception");
        } catch (NullPointerException e) {
        }
    }