ScenarioGlobals { public void registerLoaderIndicators(By... loaderIndicators) { for(By locator : loaderIndicators) { log.debug("Registered loader: " + locator); this.expectedGlobalConditions.add(new ExpectedWebElementCondition(locator)); } } ScenarioGlobals(); void setAttribute(String key, Object value); Object getAttribute(String key); Long getScenarioStart(); void registerLoaderIndicators(By... loaderIndicators); void clearExpectedGlobalConditions(); TestEnvironment getTestEnvironment(); void setTestEnvironment(TestEnvironment testEnvironment); String getNameSpace(); List<ExpectedGlobalCondition> getExpectedGlobalConditions(); void addExpectedGlobalConditions(
			ExpectedGlobalCondition expectedGlobalCondition);  }
@Test public void testRegisterLoaderIndicators() { ScenarioGlobals globals = new ScenarioGlobals(); By locator = By.id("blah"); globals.registerLoaderIndicators(locator); assertNotNull(globals.getExpectedGlobalConditions()); assertEquals("One condition should be founnd", 1, globals.getExpectedGlobalConditions().size()); ExpectedGlobalCondition found = globals.getExpectedGlobalConditions().get(0); assertEquals(ExpectedWebElementCondition.class, found.getClass()); ExpectedWebElementCondition foundImpl = (ExpectedWebElementCondition) found; assertEquals(locator, foundImpl.getLocator()); }