public static void VerifySerialization <T>(T instance, JsonSerializerSettings settings, string expected, IEnumerable <string> excludeProperties = null)
            where T : class
        {
            // Act
            string actual = JsonConvert.SerializeObject(instance, settings);

            // Act/Assert
            PropertyAssert.PublicPropertiesAreSet(instance, excludeProperties);
            Assert.Equal(expected, actual);
        }