question: public void testMapToMap ( ) { Map < String , Integer > input = new LinkedHashMap < String , Integer > ( ) ; input . put ( "A" , Integer . valueOf ( 3 ) ) ; input . put ( "B" , Integer . valueOf ( - 4 ) ) ; Map < AB , String > output = mapper . convertValue ( input , new TypeReference < Map < AB , String > > ( ) { } ) ; assertEquals ( 2 , output . size ( ) ) ; assertEquals ( "3" , output . get ( AB . A ) ) ; assertEquals ( "-4" , output . get ( AB . B ) ) ; Map < String , Integer > roundtrip = mapper . convertValue ( input , new TypeReference < TreeMap < String , Integer > > ( ) { } ) ; assertEquals ( 2 , roundtrip . size ( ) ) ; assertEquals ( Integer . valueOf ( 3 ) , roundtrip . get ( "A" ) ) ; assertEquals ( Integer . valueOf ( - 4 ) , roundtrip . get ( "B" ) ) ; }
target:  Test that verifies that we can go between couple of types of Maps...