public Type getType(final String name)
    {
        return containedTypeByNameMap.get(name);
    }
@Test
    void shouldHandleCompositeHasNullableType() throws Exception
    {
        final String nullValStr = "9223372036854775807";
        final String testXmlString =
            "<types>" +
            "<composite name=\"PRICENULL\" description=\"Price NULL\" semanticType=\"Price\">" +
            "    <type name=\"mantissa\" description=\"mantissa\" presence=\"optional\" nullValue=\"" +
            nullValStr + "\" primitiveType=\"int64\"/>" +
            "    <type name=\"exponent\" description=\"exponent\" presence=\"constant\" primitiveType=\"int8\">" +
            "-7</type>" +
            "</composite>" +
            "</types>";

        final Map<String, Type> map = parseTestXmlWithMap("/types/composite", testXmlString);
        final CompositeType c = (CompositeType)map.get("PRICENULL");
        final EncodedDataType mantissa = (EncodedDataType)c.getType("mantissa");

        assertThat(mantissa.nullValue(), is(PrimitiveValue.parse(nullValStr, PrimitiveType.INT64)));
    }