public IEnumerator TestUpdateSentimentModel()
        {
            Log.Debug("NaturalLanguageUnderstandingServiceV1IntegrationTests", "Attempting to UpdateSentimentModel...");
            SentimentModel createSentimentModelResponse = null;
            string         modelId      = "";
            MemoryStream   trainingData = new MemoryStream(ASCIIEncoding.Default.GetBytes("This is a mock file."));

            service.CreateSentimentModel(
                callback: (DetailedResponse <SentimentModel> response, IBMError error) =>
            {
                Log.Debug("NaturalLanguageUnderstandingServiceV1IntegrationTests", "CreateSentimentModel result: {0}", response.Response);
                createSentimentModelResponse = response.Result;
                Assert.IsNotNull(createSentimentModelResponse);
                Assert.AreEqual(createSentimentModelResponse.Name, "testString");
                Assert.AreEqual(createSentimentModelResponse.Language, "en");
                Assert.AreEqual(createSentimentModelResponse.Description, "testString");
                Assert.AreEqual(createSentimentModelResponse.ModelVersion, "testString");
                Assert.AreEqual(createSentimentModelResponse.VersionDescription, "testString");
                Assert.IsNull(error);

                modelId = createSentimentModelResponse.ModelId;
            },
                language: "en",
                trainingData: trainingData,
                name: "testString",
                description: "testString",
                modelVersion: "testString",
                versionDescription: "testString"
                );

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

            SentimentModel updateSentimentModel = null;

            service.UpdateSentimentModel(
                callback: (DetailedResponse <SentimentModel> response, IBMError error) =>
            {
                Log.Debug("NaturalLanguageUnderstandingServiceV1IntegrationTests", "UpdateSentimentModel result: {0}", response.Response);
                updateSentimentModel = response.Result;
                Assert.IsNotNull(updateSentimentModel);
                Assert.AreEqual(updateSentimentModel.Name, "newString");
                Assert.AreEqual(updateSentimentModel.Language, "en");
                Assert.AreEqual(updateSentimentModel.Description, "newString");
                Assert.AreEqual(updateSentimentModel.ModelVersion, "testString");
                Assert.AreEqual(updateSentimentModel.VersionDescription, "testString");
                Assert.IsNull(error);
            },
                description: "newString",
                name: "newString",
                modelId: modelId,
                language: "en",
                trainingData: trainingData
                );

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

            DeleteModelResults deleteModelResults = null;

            service.DeleteSentimentModel(
                callback: (DetailedResponse <DeleteModelResults> response, IBMError error) =>
            {
                Log.Debug("NaturalLanguageUnderstandingServiceV1IntegrationTests", "DeleteSentimentModel result: {0}", response.Response);
                deleteModelResults = response.Result;
                Assert.IsNull(error);
            },
                modelId: modelId
                );

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