public void testEmptyBean() throws Exception {
  ObjectMapper m=new ObjectMapper();
  m.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS,false);
  assertEquals("{\"@type\":\"empty\"}",m.writeValueAsString(new Empty()));
}

public void testEmptyBean ( ) throws Exception { ObjectMapper m = new ObjectMapper ( ) ; m . configure ( SerializationConfig . Feature . FAIL_ON_EMPTY_BEANS , false ) ; assertEquals ( "{\"@type\":\"empty\"}" , m . writeValueAsString ( new Empty ( ) ) ) ; }
simple unit test to verify that serializing " empty " beans is ok
