public void It_removes_capability_annotations()
        {
            bool hasCapabilityAnnotationsBefore = MetadataPreprocessor.GetXMetadata().Descendants()
                                                  .Where(x => (string)x.Name.LocalName == "Annotation")
                                                  .Where(x => x.Attribute("Term").Value.StartsWith("Org.OData.Capabilities")).Any();

            MetadataPreprocessor.RemoveCapabilityAnnotations();

            bool hasCapabilityAnnotationsAfter = MetadataPreprocessor.GetXMetadata().Descendants()
                                                 .Where(x => (string)x.Name.LocalName == "Annotation")
                                                 .Where(x => x.Attribute("Term").Value.StartsWith("Org.OData.Capabilities")).Any();

            Assert.IsTrue(hasCapabilityAnnotationsBefore, "Expected: find capability annotations. Actual: found none.");                                       // because the test data has capa annotations.
            Assert.IsFalse(hasCapabilityAnnotationsAfter, "Expected: false, there should be no elements returned. Actual: there are capability annotations."); //
        }