public void testCriterionCustomNoString() throws Exception
{
Criteria criteria = new Criteria();
criteria.addSelectColumn(new ColumnImpl("table.column"));
Criterion criterion
= new Criterion("A", 3, SqlEnum.CUSTOM);
criteria.where(criterion);
try
{
SqlBuilder.buildQuery(criteria);
fail("Exception expected");