h.begin();
h.insert("insert into something (id, name) values (:id, :name)", 1, "Tom");
h.checkpoint("first");
h.insert("insert into something (id, name) values (:id, :name)", 1, "Martin");
assertEquals(Integer.valueOf(2), h.createQuery("select count(*) from something").map(new IntegerMapper()).first());
h.rollback("first");
assertEquals(Integer.valueOf(1), h.createQuery("select count(*) from something").map(new IntegerMapper()).first());
h.commit();
assertEquals(Integer.valueOf(1), h.createQuery("select count(*) from something").map(new IntegerMapper()).first());
}