@@ -0,0 +1,1632 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.annotation.JsonUnwrapped;%0Aimport com.fasterxml.jackson.databind.*;%0A%0Apublic class UnwrappedCaching2461Test extends BaseMapTest%0A%7B%0A    // %5Bdatabind#2461%5D%0A    static class Base %7B%0A        public String id;%0A%0A        Base(String id) %7B%0A            this.id = id;%0A        %7D%0A    %7D%0A%0A    static class BaseContainer %7B%0A        @JsonUnwrapped(prefix = %22base.%22)%0A        public Base base;%0A%0A        BaseContainer(Base base) %7B%0A            this.base = base;%0A        %7D%0A    %7D%0A%0A    static class BaseContainerContainer %7B%0A        @JsonUnwrapped(prefix = %22container.%22)%0A        public BaseContainer container;%0A%0A        BaseContainerContainer(BaseContainer container) %7B%0A            this.container = container;%0A        %7D%0A    %7D%0A%0A    // %5Bdatabind#2461%5D%0A    public void testUnwrappedCaching() throws Exception %7B%0A        final BaseContainer inner = new BaseContainer(new Base(%2212345%22));%0A        final BaseContainerContainer outer = new BaseContainerContainer(inner);%0A%0A        final ObjectMapper mapperOrder1 = newJsonMapper();%0A        assertEquals(%22%7B%5C%22container.base.id%5C%22:%5C%2212345%5C%22%7D%22, mapperOrder1.writeValueAsString(outer));%0A        assertEquals(%22%7B%5C%22base.id%5C%22:%5C%2212345%5C%22%7D%22, mapperOrder1.writeValueAsString(inner));%0A        assertEquals(%22%7B%5C%22container.base.id%5C%22:%5C%2212345%5C%22%7D%22, mapperOrder1.writeValueAsString(outer));%0A%0A        final ObjectMapper mapperOrder2 = newJsonMapper();%0A        assertEquals(%22%7B%5C%22base.id%5C%22:%5C%2212345%5C%22%7D%22, mapperOrder2.writeValueAsString(inner));%0A        //  Will fail here%0A        assertEquals(%22%7B%5C%22container.base.id%5C%22:%5C%2212345%5C%22%7D%22, mapperOrder2.writeValueAsString(outer));%0A    %7D%0A%7D%0A

Add failing test for #2461