     }
     
     func testFramesOrder() {
-        let actual = fixture.getSut().buildStacktraceForCurrentThread()
+        let actual = fixture.sut.buildStacktraceForCurrentThread()
         
         // Make sure the first 4 frames contain main
         let frames = actual.frames[...3]

    }
    
    func testFramesDontContainBuilderFunction() {
        let actual = fixture.getSut().buildStacktraceForCurrentThread()
        
        let result = actual.frames.contains { frame in
            return frame.function?.contains("buildStacktraceForCurrentThread") ?? false

    }
    
    func testAsyncStacktraces() throws {
        SentrySDK.start { options in
            options.dsn = TestConstants.dsnAsString(username: "SentryStacktraceBuilderTests")
            options.stitchAsyncCode = true
        }
        
        let expect = expectation(description: "testAsyncStacktraces")
        
        fixture.queue.async {
            self.asyncFrame1(expect: expect)
        }
        
        wait(for: [expect], timeout: 2)
    }
    
    func asyncFrame1(expect: XCTestExpectation) {
        fixture.queue.asyncAfter(deadline: DispatchTime.now()) {
            self.asyncFrame2(expect: expect)
        }
    }
    
    func asyncFrame2(expect: XCTestExpectation) {
        fixture.queue.async {
            self.asyncAssertion(expect: expect)
        }
    }
    
    func asyncAssertion(expect: XCTestExpectation) {
        let actual = fixture.sut.buildStacktraceForCurrentThread()
        
        let filteredFrames = actual.frames.filter { frame in
            return frame.function?.contains("testAsyncStacktraces") ?? false ||
            frame.function?.contains("asyncFrame1") ?? false ||
            frame.function?.contains("asyncFrame2") ?? false ||
            frame.function?.contains("asyncAssertion") ?? false
        }
        let startFrames = actual.frames.filter { frame in
            return frame.stackStart?.boolValue ?? false
        }
        
        XCTAssertTrue(filteredFrames.count >= 4, "The Stacktrace must include the async callers.")
        XCTAssertTrue(startFrames.count >= 3, "The Stacktrace must have async continuation markers.")
        
        expect.fulfill()
    }
}
