METHOD_0 ( ) { org . IDENT_0 . jackson . module . IDENT_1 module = new org . IDENT_0 . jackson . module . METHOD_1 ( ) ; module . METHOD_2 ( METHOD_1 . IDENT_2 . IDENT_3 , true ) ; module . METHOD_2 ( METHOD_1 . IDENT_2 . IDENT_4 , false ) ; module . METHOD_3 ( new com . fasterxml . jackson . databind . IDENT_5 < org . eclipse . IDENT_6 . IDENT_7 . IDENT_8 > ( ) { @ org . IDENT_0 . jackson . tests . IDENT_9 . Override public void serialize ( org . eclipse . IDENT_6 . IDENT_7 . IDENT_8 value , com . fasterxml . jackson . core . IDENT_10 gen , com . fasterxml . jackson . databind . IDENT_11 IDENT_12 ) throws java . io . IOException { gen . METHOD_4 ( ( ( org . IDENT_0 . jackson . resource . IDENT_13 ) ( value . METHOD_5 ( ) ) ) . METHOD_6 ( value ) ) ; } } ) ; mapper . METHOD_7 ( module ) ; com . fasterxml . jackson . databind . IDENT_14 expected = mapper . METHOD_8 ( ) . add ( mapper . METHOD_9 ( ) . put ( STRING_0 , "1" ) . put ( "name" , STRING_1 ) . put ( STRING_2 , "2" ) ) . add ( mapper . METHOD_9 ( ) . put ( STRING_0 , "2" ) . put ( "name" , STRING_3 ) ) ; org . IDENT_0 . jackson . junit . model . User IDENT_15 = IDENT_16 . IDENT_17 . METHOD_10 ( ) ; IDENT_15 . setName ( STRING_1 ) ; org . IDENT_0 . jackson . junit . model . User IDENT_18 = IDENT_16 . IDENT_17 . METHOD_10 ( ) ; IDENT_18 . setName ( STRING_3 ) ; IDENT_15 . METHOD_11 ( IDENT_18 ) ; org . eclipse . IDENT_6 . IDENT_7 . resource . IDENT_19 resource = IDENT_20 . METHOD_12 ( org . eclipse . IDENT_6 . common . util . URI . METHOD_13 ( "test" ) ) ; resource . METHOD_14 ( ) . add ( IDENT_15 ) ; resource . METHOD_14 ( ) . add ( IDENT_18 ) ; ( ( org . IDENT_0 . jackson . resource . IDENT_13 ) ( resource ) ) . METHOD_15 ( IDENT_15 , "1" ) ; ( ( org . IDENT_0 . jackson . resource . IDENT_13 ) ( resource ) ) . METHOD_15 ( IDENT_18 , "2" ) ; com . fasterxml . jackson . databind . IDENT_14 result = mapper . METHOD_16 ( resource ) ; "<AssertPlaceHolder>" ; } METHOD_15 ( org . eclipse . IDENT_6 . IDENT_7 . IDENT_8 , java . lang . String ) { java . lang . String IDENT_21 = ( id != null ) ? METHOD_17 ( ) . put ( IDENT_22 , id ) : METHOD_17 ( ) . remove ( IDENT_22 ) ; if ( IDENT_21 != null ) { METHOD_18 ( ) . remove ( IDENT_21 ) ; } if ( id != null ) { METHOD_18 ( ) . put ( id , IDENT_22 ) ; } }
org . junit . Assert . assertEquals ( expected , result )