                 
                 beforeEach() {
                     container = Container(options: options)
-                    posterPlugin = PosterPlugin(context: container)
-                    container.addPlugin(posterPlugin)
                     container.render()
+                    posterPlugin = self.getPosterPlugin(container)
                 }
                 
                 it("Should be hidden after container Play event ") {
                     expect(posterPlugin.isHidden).to(beFalse())
-                    container.trigger(ContainerEvent.play.rawValue)
+                    container.playback?.trigger(Event.playing.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)
+                    container.playback?.trigger(Event.playing.rawValue)
+                    container.playback?.trigger(Event.didComplete.rawValue)
                     
                     expect(posterPlugin.isHidden).to(beFalse())
                 }

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

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

        }
    }
    
    private func getPosterPlugin(_ container: Container) -> PosterPlugin {
        return container.plugins.filter({$0.isKind(of: PosterPlugin.self)}).first as! PosterPlugin
    }
}
