public PrimitiveType encodingType()
    {
        return encodingType;
    }
@Test
    void shouldHandleEncodingTypesWithNamedTypes() throws Exception
    {
        try (InputStream in = Tests.getLocalResource("encoding-types-schema.xml"))
        {
            final MessageSchema schema = parse(in, ParserOptions.DEFAULT);
            final List<Field> fields = schema.getMessage(1).fields();

            assertNotNull(fields);

            EnumType type = (EnumType)fields.get(1).type();
            assertThat(type.encodingType(), is(PrimitiveType.CHAR));

            type = (EnumType)fields.get(2).type();
            assertThat(type.encodingType(), is(PrimitiveType.UINT8));
        }
    }