         let description = "Get models, filtered by source language."
         let expectation = self.expectation(description: description)
 
-        languageTranslator.getModels(sourceLanguage: "es", failure: failWithError) { models in
-            XCTAssertGreaterThan(models.count, 0, "Expected at least 1 model to be returned.")
+        languageTranslator.listModels(source: "es", failure: failWithError) { models in
+            XCTAssertGreaterThan(models.models.count, 0, "Expected at least 1 model to be returned.")
             expectation.fulfill()
         }
         waitForExpectations()

            let glossary = URL(fileURLWithPath: "Tests/LanguageTranslatorV2Tests/glossary.tmx")
        #endif

        languageTranslator.createModel(fromBaseModelID: "en-es", withGlossary: glossary,
                                       name: "custom-english-to-spanish-model", failure: failWithError)
        {
            modelID in
            XCTAssertNotEqual(modelID, "")
            creationExpectation.fulfill()

            self.languageTranslator.deleteModel(withID: modelID, failure: self.failWithError) {
                deletionExpectation.fulfill()
            }
        }

    func deleteStaleCustomModels() {
        let description = "Delete any stale custom models previously created by unit tests."
        let expectation = self.expectation(description: description)
        languageTranslator.listModels(defaultModels: false, failure: failWithError) { models in
            for model in models.models where model.baseModelID != "" {
                self.languageTranslator.deleteModel(modelID: model.modelID, failure: self.failWithError) { _ in }
            }
            expectation.fulfill()
        }
