List results = sqlMap.executeBatchDetailed();
sqlMap.commitTransaction();
assertEquals(3, results.size());
BatchResult br = (BatchResult) results.get(0);
assertEquals(5, br.getUpdateCounts().length);
br = (BatchResult) results.get(1);
assertEquals(1, br.getUpdateCounts().length);
br = (BatchResult) results.get(2);
assertEquals(4, br.getUpdateCounts().length);
} catch (BatchException e) {
fail(e.getMessage());
} catch (SQLException e) {
fail(e.getMessage());