check.setSpecs(Arrays.asList(getClass().getResource("/specs/spec-conditional-simple-otherwise.spec").getFile()));
MockedBrowser mockedBrowser = new MockedBrowser("http://galenframework.com", new Dimension(640, 480));
mockedBrowser.setMockedPage(new MockedPage(new HashMap<String, PageElement>(){{
put("textfield", new MockedPageElement(0, 0, 100, 100));
put("button-1", new MockedInvisiblePageElement(0, 0, 100, 100));
put("button-2", new MockedInvisiblePageElement(0, 0, 100, 100));
}}));
TestValidationListener validationListener = new TestValidationListener();
check.execute(new TestReport(), mockedBrowser, new GalenPageTest(), validationListener);