         }
     }
     
-    class StubPlayback: Playback {
-        override var pluginName: String {
-            return "stupPlayback"
-        }
+    private func getPosterPlugin(_ container: Container) -> PosterPlugin {
+        return container.plugins.filter({$0.isKind(of: PosterPlugin.self)}).first as! PosterPlugin
     }
 }

                
                beforeEach() {
                    container = Container(options: options)
                    posterPlugin = PosterPlugin(context: container)
                    container.addPlugin(posterPlugin)
                    container.render()
                }
                
                it("Should be hidden after container Play event ") {
                    expect(posterPlugin.isHidden).to(beFalse())
                    container.trigger(ContainerEvent.play.rawValue)
                    expect(posterPlugin.isHidden).to(beTrue())
                }
                
                it("Should be not hidden after container Ended event") {
                    container.trigger(ContainerEvent.play.rawValue)
                    container.trigger(ContainerEvent.ended.rawValue)
                    
                    expect(posterPlugin.isHidden).to(beFalse())
                }

            context("Initialization") {
                it("Should not be rendered if container has no options") {
                    container = Container()
                    container.render()
                    
                    let posterPlugin = self.getPosterPlugin(container)
                    
                    expect(posterPlugin.superview).to(beNil())
                }
                
                it("Should not be rendered if container doesn't have posterUrl Option") {
                    container = Container(options: ["anotherOption" : true])
                    container.render()
                    
                    let posterPlugin = self.getPosterPlugin(container)
                    
                    expect(posterPlugin.superview).to(beNil())
                }
                
                it("Should be rendered if container have posterUrl Option") {
                    container = Container(options: options)
                    container.render()

                    let posterPlugin = self.getPosterPlugin(container)
                    
                    expect(posterPlugin.superview) == container
                }
                
                it("Should be hidden if playback is a NoOp") {
                    container = Container(options: [kSourceUrl : "none", kPosterUrl: "http://clappr.io/poster.png"])
                    container.render()
                    
                    let posterPlugin = self.getPosterPlugin(container)
                    
                    expect(posterPlugin.isHidden).to(beTrue())
                }
            }
            
