@Test
public void testColumnMissing() {

    DataSetLookup lookup = DataSetLookupFactory.newDataSetLookupBuilder()
            .group(DEPARTMENT)
            .column(AMOUNT, AggregateFunctionType.SUM)
            .buildLookup();
    ValidationError error = TWO_COLUMNS_GROUPED.check(lookup, METADATA);
    assertNotNull(error);
    assertEquals(error.getCode(), DataSetLookupConstraints.ERROR_COLUMN_NUMBER);
}