public void beforeTestEventTakeBeforeTestTrue() throws Exception {
Mockito.when(configuration.getTakeBeforeTest()).thenReturn(true);
Mockito.when(configuration.getScreenshotType()).thenReturn("PNG");
fire(new ScreenshooterExtensionConfigured());
fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
assertEventFired(BeforeScreenshotTaken.class, 1);
assertEventFired(TakeScreenshot.class, 1);
assertEventFired(AfterScreenshotTaken.class, 1);