    @Test
    public void testGetOutputDeclaredType() {

        Spec spec = buildSpec();
        spec.setOutput("Results");
        ConverterUtils converter = new ConverterUtils(spec);
        assertEquals("output.setAverage((math.getNumber() + physics.getNumber() + biology.getNumber()) / 3);", converter.parseOutput("average", "($math + $physics + $biology) / 3"));
        assertEquals("output.setMax(math.getNumber());", converter.parseOutput("max", "$math"));
        assertEquals("output.setSubject(\"Math\");", converter.parseOutput("subject", "Math"));
    }