@@ -0,0 +1,1131 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.databind.BaseMapTest;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0Apublic class EnumCreator1291Test extends BaseMapTest%0A%7B%0A    static enum Enum1291 %7B%0A%0A        V1(%22val1%22),%0A        V2(%22val2%22),%0A        V3(%22val3%22),%0A        V4(%22val4%22),%0A        V5(%22val5%22),%0A        V6(%22val6%22);%0A%0A        private final String name;%0A%0A        Enum1291(String name) %7B%0A            this.name = name;%0A        %7D%0A%0A        public static Enum1291 fromString(String name) %7B%0A            for (Enum1291 type : Enum1291.values()) %7B%0A                if (type.name.equals(name)) %7B%0A                    return type;%0A                %7D%0A            %7D%0A            return Enum1291.valueOf(name.toUpperCase());%0A        %7D%0A%0A        @Override%0A        public String toString() %7B%0A            return name;%0A        %7D%0A    %7D%0A%0A    public void testEnumCreators1291() throws Exception%0A    %7B%0A        ObjectMapper mapper = new ObjectMapper();%0A        String json = mapper.writeValueAsString(Enum1291.V2);%0A        Enum1291 result = mapper.readValue(json, Enum1291.class);%0A        assertSame(Enum1291.V2, result);%0A    %7D%0A%7D%0A

Add failing test for #1291