 
     func testItParsesTheBitBucketPullRequest() {
         let pullRequest = bitBucketServer.pullRequest
-        let expectedUser = BitBucketServer.User(id: 1, name: "test", displayName: "test", emailAddress: "user@email.com", active: true, slug: "test", type: "NORMAL")
+        let expectedUser = BitBucketServer.User(id: 1, name: "test",
+                                                displayName: "test",
+                                                emailAddress: "user@email.com",
+                                                active: true,
+                                                slug: "test",
+                                                type: "NORMAL")
         XCTAssertEqual(pullRequest.author.user, expectedUser)
 
         let expectedProject = BitBucketServer.Project(id: 1, key: "PROJ", name: "Project", isPublic: false, type: "NORMAL")
-        let expectedRepo = BitBucketServer.Repo(name: "Repo", slug: "repo", scmId: "git", isPublic: false, forkable: true, project: expectedProject)
-        let expectedBase = BitBucketServer.MergeRef(id: "refs/heads/master", displayId: "master", latestCommit: "8942a1f75e4c95df836f19ef681d20a87da2ee20", repository: expectedRepo)
+        let expectedRepo = BitBucketServer.Repo(name: "Repo",
+                                                slug: "repo",
+                                                scmId: "git",
+                                                isPublic: false,
+                                                forkable: true,
+                                                project: expectedProject)
+        let expectedBase = BitBucketServer.MergeRef(id: "refs/heads/master",
+                                                    displayId: "master",
+                                                    latestCommit: "8942a1f75e4c95df836f19ef681d20a87da2ee20",
+                                                    repository: expectedRepo)
         XCTAssertEqual(pullRequest.fromRef, expectedBase)
 
-        let expectedHead = BitBucketServer.MergeRef(id: "refs/heads/foo", displayId: "foo", latestCommit: "d6725486c38d46a33e76f622cf24b9a388c8d13d", repository: expectedRepo)
+        let expectedHead = BitBucketServer.MergeRef(id: "refs/heads/foo",
+                                                    displayId: "foo",
+                                                    latestCommit: "d6725486c38d46a33e76f622cf24b9a388c8d13d",
+                                                    repository: expectedRepo)
         XCTAssertEqual(pullRequest.toRef, expectedHead)
 
-        let expectedPartecipant = BitBucketServer.User(id: 2, name: "danger", displayName: "DangerCI", emailAddress: "user@email.com", active: true, slug: "danger", type: "NORMAL")
+        let expectedPartecipant = BitBucketServer.User(id: 2,
+                                                       name: "danger",
+                                                       displayName: "DangerCI",
+                                                       emailAddress: "user@email.com",
+                                                       active: true,
+                                                       slug: "danger",
+                                                       type: "NORMAL")
         XCTAssertEqual(pullRequest.participants.count, 1)
         XCTAssertEqual(pullRequest.participants.first?.user, expectedPartecipant)
 
-        let expectedReviewer = BitBucketServer.User(id: 2, name: "danger", displayName: "DangerCI", emailAddress: "foo@bar.com", active: true, slug: "danger", type: "NORMAL")
-        XCTAssertEqual(pullRequest.reviewers, [BitBucketServer.PullRequest.Reviewer(user: expectedReviewer, approved: true, lastReviewedCommit: "8942a1f75e4c95df836f19ef681d20a87da2ee20")])
+        let expectedReviewer = BitBucketServer.User(id: 2,
+                                                    name: "danger",
+                                                    displayName: "DangerCI",
+                                                    emailAddress: "foo@bar.com",
+                                                    active: true,
+                                                    slug: "danger",
+                                                    type: "NORMAL")
+        XCTAssertEqual(pullRequest.reviewers, [
+            BitBucketServer.PullRequest.Reviewer(user: expectedReviewer,
+                                                 approved: true,
+                                                 lastReviewedCommit: "8942a1f75e4c95df836f19ef681d20a87da2ee20"),
+        ])
 
         XCTAssertEqual(pullRequest.closed, false)
         XCTAssertEqual(pullRequest.createdAt, 1_518_863_923_273)


    func testItParsesTheBitBucketCommits() {
        let commits = bitBucketServer.commits
        let expectedUser = BitBucketServer.User(id: 2, name: "danger", displayName: "DangerCI", emailAddress: "foo@bar.com", active: true, slug: "danger", type: "NORMAL")
        let expectedParent = BitBucketServer.Commit.Parent(id: "c62ada76533a2de045d4c6062988ba84df140729", displayId: "c62ada76533")
        let expectedCommit = BitBucketServer.Commit(id: "d6725486c38d46a33e76f622cf24b9a388c8d13d",
                                                    displayId: "d6725486c38",


    func testItParsesTheBitBucketComments() {
        let comments = bitBucketServer.comments
        let expectedUser = BitBucketServer.User(id: 2,
                                                name: "danger",
                                                displayName: "DangerCI",
                                                emailAddress: "foo@bar.com",
                                                active: true,
                                                slug: "danger",
                                                type: "NORMAL")
        let commentText = "Text"
        let expectedProperty = BitBucketServer.Comment.Detail.InnerProperties(repositoryId: 1, issues: nil)
        let expectedCommentDetail = BitBucketServer.Comment.Detail(id: 10,
                                                                   version: 23,
                                                                   text: commentText,
                                                                   author: expectedUser,
                                                                   createdAt: 1_518_939_353_345,
                                                                   updatedAt: 1_519_449_132_488,
                                                                   comments: [],
                                                                   properties: expectedProperty,
                                                                   tasks: [])
        let expectedComment = BitBucketServer.Comment(id: 52,
                                                      createdAt: 1_518_939_353_345,
                                                      user: expectedUser,
                                                      action: "COMMENTED",
                                                      fromHash: nil,
                                                      previousFromHash: nil,
                                                      toHash: nil,
                                                      previousToHash: nil,
                                                      commentAction: "ADDED",
                                                      comment: expectedCommentDetail)

        XCTAssertEqual(comments[1], expectedComment)
        XCTAssertEqual(comments.count, 7)
