// query data
Criteria criteria = new Criteria()
.where(BitTypePeer.BIT_VALUE, new Boolean(true));
List<BitType> bitTypeList = BitTypePeer.doSelect(criteria);
assertEquals(1, bitTypeList.size());
BitType bitType = bitTypeList.get(0);
// use trim() for testkey because some databases will return the
// testkey filled up with blanks, as it is defined as char(10)
assertEquals("t1", bitType.getId());
}