//[TestMethod]
        public void TestGetEnrichment()
        {
            service.WithHeader("X-Watson-Test", "1");
            var listEnrichmentsResult = service.ListEnrichments(
                projectId: projectId
                );

            List <Enrichment> availableEnrichments = listEnrichmentsResult.Result._Enrichments;

            if (availableEnrichments.Count == 0)
            {
                Console.WriteLine("No enrichments available.");
            }
            else
            {
                var getEnrichmentResult = service.GetEnrichment(
                    projectId: projectId,
                    enrichmentId: availableEnrichments[0].EnrichmentId
                    );

                Assert.IsNotNull(getEnrichmentResult.Response);
                Assert.IsTrue(getEnrichmentResult.Result.Name == availableEnrichments[0].Name);
                Assert.IsTrue(getEnrichmentResult.Result.Description == availableEnrichments[0].Description);
                Assert.IsTrue(getEnrichmentResult.Result.Type == availableEnrichments[0].Type);
            }
        }
        public IEnumerator TestGetEnrichment()
        {
            Log.Debug("DiscoveryServiceV2IntegrationTests", "Attempting to GetEnrichment...");
            Enrichment getEnrichmentResponse = null;

            service.GetEnrichment(
                callback: (DetailedResponse <Enrichment> response, IBMError error) =>
            {
                Log.Debug("DiscoveryServiceV2IntegrationTests", "GetEnrichment result: {0}", response.Response);
                getEnrichmentResponse = response.Result;
                Assert.IsNotNull(getEnrichmentResponse);
                Assert.IsNull(error);
            },
                projectId: projectId,
                enrichmentId: enrichmentId
                );

            while (getEnrichmentResponse == null)
            {
                yield return(null);
            }
        }