@Test
public void save() throws Exception {

	UserActionCollection userActionCollection = new UserActionCollection();
	userActionCollection.setAction("SEARCH");
	userActionCollection.setUserId(1);
	userActionCollection.setIp("211.123.321.143");
	userActionCollection.setMemo("测试内容");
	userActionCollectionDAO.save(userActionCollection);
	
	Statement stat = conn.createStatement();
	ResultSet rs = stat.executeQuery("select * from user_action_collection where user_id = '" + userActionCollection.getUserId() + "' order by created_date desc");
	rs.next();
	
	Assert.assertEquals ("SEARCH", rs.getString("action"));
	Assert.assertEquals ("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", rs.getString("user_id"));
	Assert.assertEquals ("211.123.321.143", rs.getString("ip"));
	Assert.assertEquals ("测试内容", rs.getString("memo"));
	Assert.assertNotNull (rs.getTimestamp("created_date"));
	
	rs.close();
	stat.close();
}