                         Loader.shared.resetPlugins()
                         Player.register(plugins: [SpecialStubPlayback.self])
                         player = Player(options: options)
-                        
+
 
                         player.load(PlayerTests.specialSource)
 

                        let loggerPlugin = player.core?.plugins.first { $0 is LoggerPlugin }
                        expect(loggerPlugin).to(beAKindOf(LoggerPlugin.self))
                    }
                    
                    it("pass plugins to Loader") {
                        Loader.shared.resetPlugins()
                        
                        Player.register(plugins: [LoggerPlugin.self])
                        player = Player(options: options)
                        
                        let loggerPlugin = Loader.shared.corePlugins.first { $0.name == "Logger" }
                        expect(loggerPlugin).to(beAKindOf(LoggerPlugin.Type.self))
                    }

            return true
        }
    }

    class SpecialStubPlayback: Playback {
        override var pluginName: String {
            return "SpecialStubPlayback"
        }

        override class func canPlay(_ options: Options) -> Bool {
            return options[kSourceUrl] as! String == PlayerTests.specialSource
        }
