connectionSource.setDatabaseType(databaseType);
TableInfo<GeneratedId, Integer> tableInfo =
new TableInfo<GeneratedId, Integer>(connectionSource, null, GeneratedId.class);
StatementExecutor<GeneratedId, Integer> se =
new StatementExecutor<GeneratedId, Integer>(databaseType, tableInfo, null);
DatabaseConnection databaseConnection = createMock(DatabaseConnection.class);
expect(databaseConnection.queryForLong(isA(String.class))).andReturn(1L);
expect(databaseConnection.insert(isA(String.class), isA(Object[].class), isA(FieldType[].class))).andReturn(1);
replay(databaseConnection);
GeneratedId genIdSeq = new GeneratedId();
se.create(databaseConnection, genIdSeq);
verify(databaseConnection);