   }
 
   func testConvertJSONArrayToStringArray() {
-    //TODO
+    let jsonStr = "{ \"tags\": [ \"data_management\", \"ibm_created\", \"ibm_dedicated_public\" ] }"
+    if let json = Utils.convertStringToJSON(jsonStr) {
+      let strArray: [String] = Utils.convertJSONArrayToStringArray(json, fieldName: "tags")
+        XCTAssertEqual(strArray.count, 3, "There should be 3 elements in the string array.")
+        UtilsTests.verifyElementInArrayExists(strArray, element: "data_management")
+        UtilsTests.verifyElementInArrayExists(strArray, element: "ibm_created")
+        UtilsTests.verifyElementInArrayExists(strArray, element: "ibm_dedicated_public")
+    } else {
+      XCTFail("Could not generate JSON object!")
+    }
   }
 
   func testGetApp() {

  func testConvertStringToJSON() {
    let VCAP_APPLICATION = "{ \"users\": null,  \"instance_id\": \"7d4f24cfba06462ba23d68aaf1d7354a\",  \"instance_index\": 0,  \"host\": \"0.0.0.0\",  \"port\": 61263,  \"started_at\": \"2016-03-04 02:43:07 +0000\",  \"started_at_timestamp\": 1457059387 }"
    if let json = Utils.convertStringToJSON(VCAP_APPLICATION) {
      print("JSON object is: \(json)")
      //print("Type is \(json["users"].dynamicType)")
      XCTAssertNil(json["users"] as? AnyObject)
      XCTAssertEqual(json["instance_id"], "7d4f24cfba06462ba23d68aaf1d7354a", "instance_id should match.")

    do {
      if let json = Utils.convertStringToJSON(options) {
        let appEnv = try CFEnvironment.getAppEnv(json)
        //print(appEnv.app)
        let app = appEnv.getApp()
        //print("app: \(app)")
        XCTAssertNotNil(app)
        XCTAssertEqual(app.port, 61263, "Application port number should match.")
        XCTAssertEqual(app.id, "e582416a-9771-453f-8df1-7b467f6d78e4", "Application ID value should match.")
        XCTAssertEqual(app.version, "e5e029d1-4a1a-4004-9f79-655d550183fb", "Application version number should match.")
        XCTAssertEqual(app.name, "swift-test", "App name should match.")
        XCTAssertEqual(app.instanceId, "7d4f24cfba06462ba23d68aaf1d7354a", "Application instance ID value should match.")
        XCTAssertEqual(app.instanceIndex, 0, "Application instance index value should match.")
        XCTAssertEqual(app.spaceId, "b15eb0bb-cbf3-43b6-bfbc-f76d495981e5", "Application space ID value should match.")
        let limits = app.limits
        //print("limits: \(limits)")
        XCTAssertNotNil(limits)
        XCTAssertEqual(limits!.memory, 128, "Memory value should match.")
        XCTAssertEqual(limits!.disk, 1024, "Disk value should match.")
        XCTAssertEqual(limits!.fds, 16384, "FDS value should match.")
        let uris = app.uris
        XCTAssertNotNil(uris)
        XCTAssertEqual(uris!.count, 1, "There should be only 1 uri in the uris array.")
        XCTAssertEqual(uris![0], "swift-test.mybluemix.net", "URI value should match.")
        XCTAssertEqual(app.name, "swift-test", "Application name should match.")
        let startedAt: NSDate? = app.startedAt
        XCTAssertNotNil(startedAt)
        let dateUtils = DateUtils()
        let startedAtStr = dateUtils.convertNSDateToString(startedAt)
        XCTAssertEqual(startedAtStr, "2016-03-04 02:43:07 +0000", "Application startedAt date should match.")
        XCTAssertNotNil(app.startedAtTs, "Application startedAt ts should not be nil.")
        XCTAssertEqual(app.startedAtTs, 1457059387, "Application startedAt ts should match.")
      } else {
        XCTFail("Could not generate JSON object!")
      }
