CucumberManager { public ScenarioGlobals stopNewScenario() { if(scenarioCreationHook != null) { scenarioCreationHook.scenarionShutdown(getCurrentScenarioGlobals()); } return scenarioGlobalsMap.remove(Thread.currentThread()); } CucumberManager(
			String scenarioGlobalsCreationHookClass, 
			String defaultCucumberOptionsString,
			boolean openResultingReportAfterCompletion,
			int parallelFeatureThreads,
			int featureFileTimeout); ScenarioGlobals startNewScenario(); ScenarioGlobals getCurrentScenarioGlobals(); ScenarioGlobals stopNewScenario(); void cleanUp(); boolean isOpenResultingReportAfterCompletion(); void setOpenResultingReportAfterCompletion(boolean openResultingReportAfterCompletion); Thread getReportingShutdownHook(final String testResultFolder); int getParallelFeatureThreads(); int getFeatureFileTimeout();  }
@Test public void testStopNewScenario() throws SecurityException, IllegalArgumentException, NoSuchMethodException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException { CucumberManager manager = new CucumberManager("com.gfk.senbot.framework.context.MockScenarioCreationHook", null, false, 1, 3600); manager.startNewScenario(); ScenarioGlobals stopNewScenario = manager.stopNewScenario(); assertNotNull(stopNewScenario.getAttribute(MockScenarioCreationHook.STOPPED_ATTRIBUTE_KEY)); assertEquals(stopNewScenario.getAttribute(MockScenarioCreationHook.STOPPED_ATTRIBUTE_KEY), MockScenarioCreationHook.STOPPED_ATTRIBUTE_VALUE); assertNull(manager.getCurrentScenarioGlobals()); }