             }
             for consumption in preferences {
                 for node in consumption.consumptionPreferences {
-                    XCTAssertNotNil(consumption.consumptionPreferenceCategoryId)
+                    XCTAssertNotNil(consumption.consumptionPreferenceCategoryID)
                     XCTAssertNotNil(node.score)
                     expectation.fulfill()
                     return

        waitForExpectations()
    }

    /** Analyze the HTML text of Kennedy's speech. */
    func testHTMLProfile() {
        let description = "Analyze the HTML text of Kennedy's speech."
        let expectation = self.expectation(description: description)

        guard let kennedySpeech = kennedySpeechHTML else {
            XCTFail("Unable to read KennedySpeech.html file.")
            return
        }
        personalityInsights.getProfile(fromHTML: kennedySpeech,
                                       failure: failWithError)
        {
            profile in
            for preference in profile.personality {
                XCTAssertNotNil(preference.name)
                break


    // MARK: - Negative Tests

    func testProfileWithShortText() {
        let expectation = self.expectation(description: "profile(text:)")
        let failure = { (error: Error) in expectation.fulfill() }
        personalityInsights.profile(text: short, failure: failure, success: failWithResult)
        waitForExpectations()
    }
}
