@Test
public void testRetrySend() throws Exception {

	SmsContentLog log = new SmsContentLog("This is a test log", "13917677725");
	log.setSerialId(12332112331212122l);
	log.setPriority(2);
	log.setFailure(0);
	smsContentLogDAO.save(log);
	
	smsContentDAO.retrySend(log.getSerialId());
	
	Statement stat = conn.createStatement();
	ResultSet rs = stat.executeQuery("select * from sms_content where mobile = '13917677725' order by id desc");
	rs.next();
	Assert.assertNotNull(rs.getLong("id"));
	Assert.assertEquals(log.getContent(), rs.getString("content"));
	Assert.assertEquals(log.getMobile(), rs.getString("mobile"));
	Assert.assertEquals(log.getPriority().intValue(), rs.getInt("priority"));
	Assert.assertEquals(log.getType(), rs.getString("type"));
	Assert.assertNotNull(rs.getDate("send_date"));
	Assert.assertEquals(log.getFailure() + 1, rs.getInt("failure"));
	
	if (rs.next()) {
		fail("插入了多条数据!");
	}		
}