@Test
public void checkLayout_shouldTestLayout_andReturnLayoutReport() throws IOException {
WebDriver driver = new MockedDriver();
driver.get("/mocks/pages/galen4j-sample-page.json");
LayoutReport layoutReport = Galen.checkLayout(driver, "/specs/galen4j/sample-spec-with-error.spec", asList("mobile"), null, new Properties(), null);
assertThat(layoutReport.getValidationErrors(), contains(
new ValidationError().withMessage("\"save-button\" is 10px left instead of 50px")
.withArea(new ErrorArea(new Rect(10, 10, 100, 50), "save-button"))
.withArea(new ErrorArea(new Rect(120, 10, 200, 50), "name-textfield")),
new ValidationError().withMessage("\"save-button\" text is \"Save\" but should be \"Store\"")
.withArea(new ErrorArea(new Rect(10, 10, 100, 50), "save-button"))));