         let sourceTargetExpectation = expectationWithDescription("Source and Target Translation")
         let modelExpectation = expectationWithDescription("Model Translation")
         
-        service!.translate(["Hello","House"],source:"en",target:"es") { text, error in
+        service.translate(["Hello","House"],source:"en",target:"es") { text, error in
             
             XCTAssertNotNil(text, "Expected non-empty array to be returned")
             XCTAssertEqual(text!.first!,"Hola","Expected hello to translate to hola")

        let unauthorizedDeleteExpectation = expectationWithDescription("Unauthorized expectation")
        let missingDeleteExpectation = expectationWithDescription("Missing delete expectation")
        
        service!.deleteModel("en-es") { error in
            XCTAssertNotNil(error, "Expected unauthorized exception when trying to delete an IBM model")
            unauthorizedDeleteExpectation.fulfill()
        }
        
        service!.deleteModel("qwerty") { error in
            XCTAssertNotNil(error!,"Expected missing delete exception when trying to delete a nonexistent model")
            missingDeleteExpectation.fulfill()
        }


class LanguageTranslationTests: XCTestCase {
    /// Language translation service
    private var service: LanguageTranslation!
    
    /// Timeout for an asynchronous call to return before failing the unit test
    private let timeout: NSTimeInterval = 60.0
