### Question:
PreparedBatch extends SqlStatement<PreparedBatch> implements ResultBearing { public int[] execute() { try { return internalBatchExecute().updateCounts; } finally { getContext().close(); } } PreparedBatch(Handle handle, String sql); @Override R scanResultSet(ResultSetScanner<R> mapper); int[] execute(); ResultIterator<Integer> executeAndGetModCount(); ResultBearing executeAndReturnGeneratedKeys(String... columnNames); R execute(ResultProducer<R> producer); PreparedBatch add(); PreparedBatch add(Object... args); PreparedBatch add(Map<String, ?> args); int size();  }### Answer:
@Test public void emptyBatch() { final PreparedBatch batch = h.prepareBatch("insert into something (id, name) values (:id, :name)"); assertThat(batch.execute()).isEmpty(); assertThat(batch.getContext().isClosed()).isTrue(); }