public void testDiagonal() throws ReportProcessingException
{
final TypedTableModel model = createTestData();
final CrosstabSpecification crosstabSpecification = CrosstabTestUtil.fillOrderedCrosstabSpec(model);
assertEquals(4, crosstabSpecification.size());
CrosstabTestUtil.assertEqualsArray(new Object[]{"C0"}, crosstabSpecification.getKeyAt(0));
CrosstabTestUtil.assertEqualsArray(new Object[]{"C1"}, crosstabSpecification.getKeyAt(1));
CrosstabTestUtil.assertEqualsArray(new Object[]{"C2"}, crosstabSpecification.getKeyAt(2));
CrosstabTestUtil.assertEqualsArray(new Object[]{"C3"}, crosstabSpecification.getKeyAt(3));
}