@Test
public void testCyclicalReferences() {

    
    List<Table> list = new ArrayList<Table>(4);
    Table t1 = new Table("1");
    Table t2 = new Table("2");
    Table t3 = new Table("3");
    t1.addForeignKey(new ForeignKey("2","2"));
    t2.addForeignKey(new ForeignKey("3","3"));
    t3.addForeignKey(new ForeignKey("1","1"));
    
    list.add(t3);
    list.add(t2);
    list.add(t1);
    
    list = Database.sortByForeignKeys(list, null, null, null);
    
    // for now just make sure it doesn't blow up
    
}