@@ -0,0 +1,1281 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.annotation.JsonTypeInfo;%0A%0Aimport com.fasterxml.jackson.databind.*;%0A%0Apublic class EnumPolymorphic2605Test extends BaseMapTest%0A%7B%0A    // for %5Bdatabind#2605%5D%0A    static class EnumContaintingClass %3CENUM_TYPE extends Enum%3CENUM_TYPE%3E%3E %7B%0A        @JsonTypeInfo(%0A            use = JsonTypeInfo.Id.CLASS,%0A            include = JsonTypeInfo.As.PROPERTY,%0A            property = %22@class%22%0A        )%0A         private ENUM_TYPE selected;%0A%0A        protected EnumContaintingClass() %7B %7D%0A%0A        public EnumContaintingClass(ENUM_TYPE selected) %7B%0A          this.selected = selected;%0A        %7D%0A%0A        public ENUM_TYPE getSelected() %7B%0A          return selected;%0A        %7D%0A%0A        public void setSelected(ENUM_TYPE selected) %7B%0A          this.selected = selected;%0A        %7D%0A    %7D%0A%0A    static enum TestEnum %7B FIRST, SECOND, THIRD; %7D%0A%0A    private final ObjectMapper MAPPER = newJsonMapper();%0A    %0A    // for %5Bdatabind#2605%5D%0A    public void testRoundtrip() throws Exception%0A    %7B%0A      EnumContaintingClass%3CTestEnum%3E gui = new EnumContaintingClass%3CTestEnum%3E(TestEnum.SECOND);%0A      String str = MAPPER.writeValueAsString(gui);%0A      Object o = MAPPER.readerFor(EnumContaintingClass.class).readValue(str);%0A      assertNotNull(o);%0A    %7D%0A%7D%0A

Add a failing test for #2605