UntypedObjectDeserializerSerializer extends UntypedObjectDeserializer { @Override @Nullable public Object deserialize(final JsonParser parser, final DeserializationContext context) throws IOException { return defaultDeserialize(parser.getCurrentName(), parser, context); } UntypedObjectDeserializerSerializer(final JsonGenerator generator); @Override @Nullable Object deserialize(final JsonParser parser, final DeserializationContext context);  }
@Test public void serializes_During_Deserialization() throws IOException { Object deserializedValue = underTest.deserialize(parser, context); assertThat(deserializedValue, equalTo(FIELD_VALUE)); verify(generator).writeFieldName(eq(FIELD_NAME)); verify(generator).writeObject(eq(FIELD_VALUE)); }