         waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
     }
    
-    
     func testURLGetRankedImageFaceTags(){
         
         let emptyExpectation = expectationWithDescription("Empty")

        let validExpectation = expectationWithDescription("Valid")
        
        serviceVision.urlGetRankedImageKeywords("", forceShowAll: true, knowledgeGraph: 1, completionHandler: { imageKeyWords in
            XCTAssertEqual(0,imageKeyWords.imageKeyWords.count, "Expected result with a total keywords of 4")
            emptyExpectation.fulfill()
        })
        

    This will test an invalid API key for all three segments of Vision, Language and Data
    */
    func testInvalidAPIKey() {
        let invalidExpectation = expectationWithDescription("Invalid API key")
        let service : VisionImpl = VisionImpl( apiKey: "WRONG")
        
        service.urlGetRankedImageKeywords(testUrl, forceShowAll: true, knowledgeGraph: 1, completionHandler: { imageKeyWords in
            XCTAssertEqual(0, imageKeyWords.totalTransactions, "Expected result with a total transaction of 0")
            XCTAssertEqual(0,imageKeyWords.imageKeyWords.count, "Expected result with a total keywords of 0")
            invalidExpectation.fulfill()
        })
        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
    }

