public void testMapSubClass() throws Exception {
  ObjectMapper mapper=new ObjectMapper();
  MapSubClass result=mapper.readValue("{\"a\":true }",MapSubClass.class);
  assertEquals(1,result.size());
  Object value=result.get("a");
  assertEquals(BooleanWrapper.class,value.getClass());
  BooleanWrapper bw=(BooleanWrapper)value;
  assertEquals(Boolean.TRUE,bw.b);
}

public void testMapSubClass ( ) throws Exception { ObjectMapper mapper = new ObjectMapper ( ) ; MapSubClass result = mapper . readValue ( "{\"a\":true }" , MapSubClass . class ) ; assertEquals ( 1 , result . size ( ) ) ; Object value = result . get ( "a" ) ; assertEquals ( BooleanWrapper . class , value . getClass ( ) ) ; BooleanWrapper bw = ( BooleanWrapper ) value ; assertEquals ( Boolean . TRUE , bw . b ) ; }
verifying that sub - classing works ok wrt generics information
