public void TestListBucketMetaSearchKeys()
        {
            ListBucketMetaSearchKeysRequest request = new ListBucketMetaSearchKeysRequest()
            {
                BucketName = temp_bucket
            };

            ListBucketMetaSearchKeysResponse response = client.ListBucketMetaSearchKeys(request);

            Assert.IsNotNull(response.MetaDataSearchList.IndexableKeys);
            CompareKeyResults(response.MetaDataSearchList.IndexableKeys, bucketMetadataSearchKeys);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ListBucketMetaSearchKeysResponse response = new ListBucketMetaSearchKeysResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    UnmarshallResult(context, response);
                    continue;
                }
            }


            return(response);
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketMetaSearchKeysResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("IndexableKeys/Key", targetDepth))
                    {
                        response.MetaDataSearchList.IndexableKeys.Add(MetaSearchKeyUnmarshaller.Instance.Unmarshall(context));

                        continue;
                    }
                    if (context.TestExpression("OptionalAttributes/Attribute", targetDepth))
                    {
                        response.MetaDataSearchList.OptionalAttributes.Add(MetaSearchKeyUnmarshaller.Instance.Unmarshall(context));

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }



            return;
        }