@@ -0,0 +1,1721 @@
+package com.fasterxml.jackson.xml;%0A%0Aimport org.codehaus.jackson.annotate.JsonTypeInfo;%0A%0Apublic class TestEnums extends XmlTestBase%0A%7B%0A    /*%0A    /**********************************************************%0A    /* Helper types%0A    /**********************************************************%0A     */%0A%0A    static enum TestEnum %7B A, B, C; %7D%0A%0A    static class EnumBean%0A    %7B%0A        public TestEnum value;%0A%0A        public EnumBean() %7B %7D%0A        public EnumBean(TestEnum v) %7B value = v; %7D%0A    %7D%0A    %0A    static class UntypedEnumBean%0A    %7B%0A        @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property=%22__type%22)%0A        public Object value;%0A%0A        public UntypedEnumBean() %7B %7D%0A        public UntypedEnumBean(TestEnum v) %7B value = v; %7D%0A    %7D%0A%0A    /*%0A    /**********************************************************%0A    /* Unit tests%0A    /**********************************************************%0A     */%0A%0A    public void testEnum() throws Exception%0A    %7B%0A        XmlMapper mapper = new XmlMapper();%0A        String str = mapper.writeValueAsString(new EnumBean(TestEnum.B));%0A        EnumBean result = mapper.readValue(str, EnumBean.class);%0A        assertNotNull(result);%0A        assertEquals(TestEnum.B, result.value);%0A    %7D%0A%0A    public void testUntypedEnum() throws Exception%0A    %7B%0A        XmlMapper mapper = new XmlMapper();%0A        String str = mapper.writeValueAsString(new UntypedEnumBean(TestEnum.B));%0A        UntypedEnumBean result = mapper.readValue(str, UntypedEnumBean.class);%0A        assertNotNull(result);%0A        assertNotNull(result.value);%0A        Object ob = result.value;%0A        assertSame(TestEnum.class, ob.getClass());%0A        assertEquals(TestEnum.B, result.value);%0A    %7D%0A    %0A%7D%0A

Add unit test for Issue#9