question: public void testOkDupFields ( ) throws Exception { OkDupFieldBean bean = new OkDupFieldBean ( 1 , 2 ) ; Map < String , Object > json = writeAndMap ( new ObjectMapper ( ) , bean ) ; assertEquals ( 2 , json . size ( ) ) ; assertEquals ( Integer . valueOf ( 1 ) , json . get ( "x" ) ) ; assertEquals ( Integer . valueOf ( 2 ) , json . get ( "y" ) ) ; }
target:  Testing [JACKSON-226]: it is ok to have "field override", as long as there are no intra-class conflicts.