public class LayoutReportNodeTest {
@Test
public void should_fetchStatistics_properly() {
LayoutReport report = createSampleLayoutReport();
TestStatistic statistics = new TestStatistic();
new LayoutReportNode(report, "Layout check").fetchStatistic(statistics);
assertThat(statistics.getPassed(), is(1));
assertThat(statistics.getErrors(), is(3));
assertThat(statistics.getWarnings(), is(2));
}