private static IObjectMemberExporter CreatePropertyExporter(string name, int value, int defaultValue)
{
TestPropertyDescriptor property = new TestPropertyDescriptor(name, value);
JsonDefaultValueAttribute attribute = new JsonDefaultValueAttribute(defaultValue);
((IPropertyDescriptorCustomization)attribute).Apply(property);
IServiceProvider sp = property;
return (IObjectMemberExporter) sp.GetService(typeof(IObjectMemberExporter));
}