This class is defined outside of the CustomFieldSerializerTestSetFactory
because of a bug where custom field serializers cannot be inner classes and
custom field serializers must be in the same package as the class that they
serializer. Once we fix this bug we can move this class into the test set
factory.