question: 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 ( ) ) ) ; }
target:  Simple unit test to verify that serializing "empty" beans is ok