"PRIMARY KEY (ad_id),\n" +
"KEY active (active)\n" +
")"));
DatabaseSnapshot snapshot = SnapshotGeneratorFactory.getInstance().createSnapshot(CatalogAndSchema.DEFAULT, getDatabase(), new SnapshotControl(getDatabase()));
Column createdColumn = snapshot.get(new Column().setRelation(new Table().setName("ad").setSchema(new Schema())).setName("created"));
Object defaultValue = createdColumn.getDefaultValue();
assertNotNull(defaultValue);
assertTrue(defaultValue instanceof DatabaseFunction);
assertEquals("0000-00-00 00:00:00", ((DatabaseFunction) defaultValue).getValue());