@Test
public void testAddBatch() throws SQLException {

    TGroupConnection conn = null;
    PreparedStatement stat = null;
    try {
        conn = tgds.getConnection();
        stat = conn.prepareStatement("update test set type=? where id = ?");
        stat.setInt(1, 1);
        stat.setString(2, "2askjfoue33");
        stat.addBatch();
        stat.setInt(1, 2);
        stat.setString(2, "retrtorut48");
        stat.addBatch();
        int[] affectedRow = stat.executeBatch();
        System.out.println(Arrays.toString(affectedRow));
        MockDataSource.showTrace();
        Assert.assertTrue(MockDataSource.hasMethod("db", "db1", "executeBatch"));
    } finally {
        if (conn != null) {
            try {
                conn.close();
            } catch (SQLException e) {
            }
            if (stat != null) {
                try {
                    stat.close();
                } catch (SQLException e) {
                }
            }
        }
    }
}