@@ -28,13 +28,12 @@ static class Third {
2828 /**********************************************************************
2929 */
3030
31- protected final ObjectMapper MAPPER = jsonMapperBuilder ().build ();
32-
3331 public void testPojoMixinDeserialization () throws Exception {
34- ObjectMapper mxMapper = MAPPER
32+ ObjectMapper mxMapper = jsonMapperBuilder ()
3533 .addMixIn (First .class , Second .class )
3634 .addMixIn (Second .class , Third .class )
37- .addMixIn (Third .class , First .class );
35+ .addMixIn (Third .class , First .class )
36+ .build ();
3837
3938 // first deserialized from second
4039 First first = mxMapper .readValue (a2q ("{'second-mixin':'second-mixin'}" ), First .class );
@@ -50,10 +49,11 @@ public void testPojoMixinDeserialization() throws Exception {
5049 }
5150
5251 public void testPojoMixinSerialization () throws Exception {
53- ObjectMapper mxMapper = MAPPER
52+ ObjectMapper mxMapper = jsonMapperBuilder ()
5453 .addMixIn (First .class , Second .class )
5554 .addMixIn (Second .class , Third .class )
56- .addMixIn (Third .class , First .class );
55+ .addMixIn (Third .class , First .class )
56+ .build ();
5757
5858 // first serialized as second
5959 First firstBean = new First ();
0 commit comments