public void testGetterInheritance() throws Exception {
  ObjectMapper m=new ObjectMapper();
  Map<String,Object> result=writeAndMap(m,new SubClassBean());
  assertEquals(3,result.size());
  assertEquals(Integer.valueOf(1),result.get("x"));
  assertEquals(Integer.valueOf(2),result.get("y"));
  assertEquals(Integer.valueOf(3),result.get("z"));
}

public void testGetterInheritance ( ) throws Exception { ObjectMapper m = new ObjectMapper ( ) ; Map < String , Object > result = writeAndMap ( m , new SubClassBean ( ) ) ; assertEquals ( 3 , result . size ( ) ) ; assertEquals ( Integer . valueOf ( 1 ) , result . get ( "x" ) ) ; assertEquals ( Integer . valueOf ( 2 ) , result . get ( "y" ) ) ; assertEquals ( Integer . valueOf ( 3 ) , result . get ( "z" ) ) ; }
let ' s also verify that inherited super - class getters are used as expected
