public void testReferencingObjectRefill() throws TorqueException
{
ForeignKeySchemaData.clearTablesInDatabase();
ForeignKeySchemaData testData
= ForeignKeySchemaData.getDefaultTestData();
testData.save();
Criteria criteria = new Criteria();
criteria.and(OIntegerPkPeer.NAME, "oIntegerPk2");
List<OIntegerPk> pkList = OIntegerPkPeer.doSelect(criteria);
assertEquals(1, pkList.size());