@Test
public void testMultipleExecuteBindBean() {
final PreparedBatch b = h.prepareBatch("insert into something (id, name) values (:id, :name)");
b.bindBean(new Something(1, "Eric")).add();
b.bindBean(new Something(2, "Brian")).add();
b.execute();
b.bindBean(new Something(3, "Keith")).add();
b.execute();
final List<Something> r = h.createQuery("select * from something order by id").mapToBean(Something.class).list();
assertThat(r).extracting(Something::getId, Something::getName)
.containsExactly(tuple(1, "Eric"), tuple(2, "Brian"), tuple(3, "Keith"));
}