List<ObjectSpecs> objects = pageSpec.getSections().get(1).getObjects();
assertThat(objects.size(), is(2));
assertThat(objects.get(0).getObjectName(), is("submit"));
assertThat(objects.get(0).getSpecs().size(), is(2));
assertThat((SpecInside) objects.get(0).getSpecs().get(0), is(new SpecInside("big-box",
locations(
new Location(Range.between(10, 30), sides(RIGHT)),
new Location(Range.between(20, 40), sides(TOP))
))));
assertThat((SpecNear) objects.get(0).getSpecs().get(1), is(new SpecNear("menu", locations(new Location(Range.exact(20), sides(LEFT))))));
assertThat(objects.get(1).getObjectName(), is("search-field"));
assertThat(objects.get(1).getSpecs().size(), is(1));
assertThat((SpecInside) objects.get(1).getSpecs().get(0), is(new SpecInside("big-box", locations(new Location(Range.exact(30), sides(RIGHT))))));
}