in source/UberRidesTests/ObjectMappingTests.swift [329:344]
func testGetUserProfile() {
let bundle = Bundle(for: ObjectMappingTests.self)
if let path = bundle.path(forResource: "getMe", ofType: "json") {
if let jsonData = try? Data(contentsOf: URL(fileURLWithPath: path)) {
let userProfile = try? JSONDecoder.uberDecoder.decode(UserProfile.self, from: jsonData)
XCTAssertNotNil(userProfile)
XCTAssertEqual(userProfile!.firstName, "Uber")
XCTAssertEqual(userProfile!.lastName, "Developer")
XCTAssertEqual(userProfile!.email, "developer@uber.com")
XCTAssertEqual(userProfile!.picturePath, "https://profile-picture.jpg")
XCTAssertEqual(userProfile!.promoCode, "teypo")
XCTAssertEqual(userProfile!.UUID, "91d81273-45c2-4b57-8124-d0165f8240c0")
XCTAssertEqual(userProfile!.riderID, "kIN8tMqcXMSJt1VC3HWNF0H4VD1JKlJkY==")
}
}
}