Test case showing that JSON serialization without FLUSH_AFTER_WRITE_VALUE fails.
Ensure that ProviderBase closes JsonGenerator.