private void testEditionWithFieldAdded(String dsName, String type) throws Exception {
DataSource d = ds.getDataSource(dsName,
DataSourceFactory.UNDOABLE);
d.beginTrans();
d.addField("extra", type);
int fi = d.getFieldIndexByName("extra");
new UndoRedoTests()
.testAlphanumericEditionUndoRedo((AlphanumericDataSource) d);
d.setFieldValue(0, fi, ValueFactory.createValue(true));
assertTrue(((BooleanValue) d.getFieldValue(0, fi)).getValue());