public void SerializesOneHeaderKeyWithMultipleValues()
            {
                var headers = new[] { new KeyValuePair<string, IEnumerable<string>>("abc", new[] { "def", "ghi", "jkl" }) };
                var expectedSerialization = "'abc': ['def', 'ghi', 'jkl']";

                var serialized = ApiException.SerializeHeaders(headers);

                serialized.Should().Be(expectedSerialization);
            }
            public void SerializesOneHeaderKeyWithNoValues()
            {
                var headers = new[] { new KeyValuePair<string, IEnumerable<string>>("abc", new string[0]) };
                var expectedSerialization = "'abc': []";

                var serialized = ApiException.SerializeHeaders(headers);

                serialized.Should().Be(expectedSerialization);
            }
            public void SerializesMultipleHeaderKeyWithZeroOneOrMultipleValues()
            {
                var headers = new[]
                {
                    new KeyValuePair<string, IEnumerable<string>>("abc", new[] { "def", "ghi", "jkl" }),
                    new KeyValuePair<string, IEnumerable<string>>("xyz", new string[0]),
                    new KeyValuePair<string, IEnumerable<string>>("uvw", new[] { "123" })
                };
                var expectedSerialization = "'abc': ['def', 'ghi', 'jkl'], 'xyz': [], 'uvw': ['123']";

                var serialized = ApiException.SerializeHeaders(headers);

                serialized.Should().Be(expectedSerialization);
            }