         _playbackType = playbackType
     }
 }
-
-class CoreStub: Core {
-    
-    override var activeContainer: Container? {
-        get {
-            return _container
-        }
-        
-        set {
-            _container = activeContainer
-        }
-    }
-    
-    private var _container: Container? = ContainerStub()
-}
-
-class ContainerStub: Container {
-    override var playback: Playback? {
-        get {
-            return _playback
-        }
-        set {
-            _playback = newValue
-        }
-    }
-    
-    private var _playback: Playback?
-}

            func buildCore(position seconds: Double, playbackType: PlaybackType) -> Core {
                
                let loader = Loader(externalPlugins: [DVRPlugin.self])
                let core = CoreStub(loader: loader)
                
                let playback = AVFoundationPlaybackStub()
                let player = AVPlayerStub()
                player.set(currentTime: CMTime(seconds: seconds, preferredTimescale: 1))
                playback.player = player
                playback.set(playbackType: playbackType)
                core.activeContainer?.playback = playback
                
                return core
            }

@testable import Clappr

class DVRPluginTests: QuickSpec {
    
    var playback: AVFoundationPlaybackStub!
    var container: Container!
    
    override func spec() {
        super.spec()

