driver.manage().window().setSize(new Dimension(1000, 1000));
SeleniumPage page = new SeleniumPage(driver);
TestValidationListener validationListener = new TestValidationListener();
List<PageSection> pageSections = pageSpec.findSections(asList("multi-check"));
assertThat("Filtered sections size should be", pageSections.size(), is(1));
SectionValidation sectionValidation = new SectionValidation(pageSections, new PageValidation(null, page, pageSpec, validationListener, null), validationListener);
List<ValidationError> errors = sectionValidation.check();
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-1>\n" +
"<SpecHeight menu-items-1>\n" +
"</o menu-items-1>\n"));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-2>\n" +
"<SpecHeight menu-items-2>\n" +
"</o menu-items-2>\n"));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-3>\n" +
"<SpecHeight menu-items-3>\n" +
"</o menu-items-3>\n" ));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-4>\n" +
"<SpecHeight menu-items-4>\n" +
"</o menu-items-4>\n" ));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-5>\n" +
"<SpecHeight menu-items-5>\n" +
"</o menu-items-5>\n" ));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-6>\n" +
"<SpecHeight menu-items-6>\n" +
"</o menu-items-6>\n" ));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-7>\n" +
"<SpecHeight menu-items-7>\n" +
"</o menu-items-7>\n" ));
assertThat("Invokations should contain", validationListener.getInvokations(), containsString(
"<o menu-items-1>\n" +
"<SpecNear menu-items-1>\n" +
"</o menu-items-1>\n" ));
assertThat("Errors should be empty", errors.size(), is(0));
}