@Test
public void testSave() throws Exception {

	SmsContentLog log = new SmsContentLog("This is a test log","13917677725");
	smsContentLogDAO.save(log);
	
	Statement stat = conn.createStatement();
	ResultSet rs = stat.executeQuery("select * from sms_content_log where content = 'This is a test log' and mobile = '13917677725'");
	rs.next();
	Assert.assertNotNull(rs.getLong("id"));
	Assert.assertEquals("This is a test log", rs.getString("content"));
	Assert.assertEquals("13917677725", rs.getString("mobile"));
	Assert.assertEquals(5, rs.getInt("priority"));
	Assert.assertNull(rs.getString("type"));
	Assert.assertNotNull(rs.getDate("send_date"));
	Assert.assertEquals(0, rs.getInt("failure"));
	Assert.assertEquals(1, rs.getInt("numbers"));
	
	if (rs.next()) {
		fail("插入了多条数据!");
	}
}