/**
* Simple unit test for adding a Create statement to a Table
* @throws Exception
*/
public void testAddCreateStatement() throws Exception {
ConfigHelper helper = new ConfigHelper();
Table table = helper.addTable("widgets", "WIDGETS");
helper.addCreateStatement(table, "insert into widgets values (?,?)", "ID NAME");
Config cfg = helper.getConfig();
assertEquals(1, cfg.getTable().size());
Table widgets = (Table) cfg.getTable().get(0);
assertEquals("insert into widgets values (?,?)", widgets.getCreate().getSql());
assertEquals("WIDGETS", widgets.getTypeName());
assertEquals("ID NAME", ConfigUtil.getParameters(widgets.getCreate()));