newPkColumn.setSize("20");
newPkColumn.setSize("32");
    public void testAddTable2()    {        final String modelXml =             "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+            "<database name='roundtriptest'>\n"+            "  <table name='roundtrip1'>\n"+            "    <column name='pk' type='INTEGER' primaryKey='true' required='true'/>\n"+            "    <column name='avalue' type='VARCHAR' size='32' required='true'/>\n"+            "  </table>\n"+           "</database>";        Database model = createDatabase(modelXml);        insertRow("roundtrip1", new Object[] { new Integer(1), "test" });    	Table  newTable    = new Table();    	Column newPkColumn = new Column();    	newPkColumn.setName("pk");    	newPkColumn.setTypeCode(Types.VARCHAR);    	newPkColumn.setSize("20");    	newPkColumn.setPrimaryKey(true);    	newPkColumn.setRequired(true);    	newTable.setName("roundtrip2");    	newTable.addColumn(newPkColumn);    	model.addTable(newTable);        alterDatabase(model);        // note that we have to split the alteration because we can only add the foreign key if        // there is a corresponding row in the new table        insertRow("roundtrip2", new Object[] { "test" });                ForeignKey newFk = new ForeignKey("test");    	newFk.setForeignTable(newTable);    	newFk.addReference(new Reference(model.getTable(0).getColumn(1), newPkColumn));    	model.getTable(0).addForeignKey(newFk);    	alterDatabase(model);        Database modelFromDb = readModelFromDatabase("roundtriptest");        assertEquals(getAdjustedModel(),        		     modelFromDb);        List beans1 = getRows("roundtrip1");        List beans2 = getRows("roundtrip2");        assertEquals(new Integer(1), beans1.get(0), "pk");        assertEquals((Object)"test", beans1.get(0), "avalue");        assertEquals((Object)"test", beans2.get(0), "pk");    }