@Test
public void testSaveBatch()  throws Exception {

	smsContentDAO.save(new SmsContent("Test Sms 1", "13917677725"));
	smsContentDAO.save(new SmsContent("Test Sms 2", "13917677725"));
	smsContentDAO.save(new SmsContent("Test Sms 3", "13917677725"));
	smsContentDAO.save(new SmsContent("Test Sms 4", "13917677725"));
	smsContentDAO.save(new SmsContent("Test Sms 5", "13012312657"));
	
	int rowCount = 0;
	ResultSet rs = conn.createStatement().executeQuery("select count(*) from sms_content_log");
	rs.next();
	rowCount = rs.getInt(1);
	
	Map<String,Object> parameters = new HashMap<String,Object>();
	parameters.put("condition", "mobile = '13917677725'");
	smsContentLogDAO.saveBatch(parameters);
	rs = conn.createStatement().executeQuery("select count(*) from sms_content_log");
	rs.next();
	Assert.assertEquals(rowCount + 4, rs.getInt(1));
	
	rowCount += 4; 
	
	parameters.put("failure", 1);
	smsContentLogDAO.saveBatch(parameters);
	rs = conn.createStatement().executeQuery("select count(*) from sms_content_log");
	rs.next();
	Assert.assertEquals(rowCount, rs.getInt(1));			
}