 import Quick
 import Nimble
 import AVFoundation
-import Swifter
+import OHHTTPStubs
 
 @testable import Clappr
 
 class AVFoundationPlaybackStateMachineEventsTests: QuickSpec {
     override func spec() {
         describe("AVFoundationPlayback Tests") {
-            let server = HTTPStub()
             let unwantedEvents: [Event] = [
                 .didUpdateBuffer, .didUpdatePosition,
                 .seekableUpdate, .didFindAudio,


                context("when pause, play, pause and stop") {
                    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, .willPause, .didPause,


                context("when pause, 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, .willPause, .didPause,
