 
                 context("when pause, play, pause and stop") {
                     it("triggers events following the state machine pattern") {
-                        let options = [kSourceUrl: "http://localhost:8080/sample.m3u8"]
+                        let options = [kSourceUrl: "http://clappr.sample/master.m3u8"]
                         let playback = AVFoundationPlayback(options: options)
                         let expectedEvents: [Event] = [
                             .ready, .willPause, .didPause,

            }

            describe("#state machine error events") {
                beforeEach {
                    server.stop()
                }

                afterEach {
                    server.start()
                }

                context("when play and an error occurs") {
                    it("triggers events following the state machine pattern") {
                        let options = [kSourceUrl: "http://localhost:8080/sample.m3u8"]
                        let playback = AVFoundationPlayback(options: options)
                        let expectedEvents: [Event] = [
                            .ready, .willPlay, .stalling, .error, .didPause

                .didUpdateDuration
            ]

            beforeEach {
                OHHTTPStubs.removeAllStubs()
                stub(condition: isHost("clappr.sample")) { result in
                    if result.url?.path == "/master.m3u8" {
                        let stubPath = OHPathForFile("master.m3u8", type(of: self))
                        return fixture(filePath: stubPath!, headers: [:])
                    } else if result.url!.path.contains(".ts") {
                        let stubPath = OHPathForFile(result.url!.path.replacingOccurrences(of: "/", with: ""), type(of: self))
                        return fixture(filePath: stubPath!, headers: [:])
                    }
                    
                    print("ERRO STUB")
                    let stubPath = OHPathForFile("master.m3u8", type(of: self))
                    return fixture(filePath: stubPath!, headers: [:])
                }
            }

            describe("#state machine events") {
                context("when play, pause, seek, play and stop") {
                    it("triggers events following the state machine pattern") {
                        let options = [kSourceUrl: "http://clappr.sample/master.m3u8"]
                        let playback = AVFoundationPlayback(options: options)
                        let expectedEvents: [Event] = [
                            .ready, .willPlay, .stalling, .willPlay, .playing,
