@Test
public void testCount() throws Exception {

	SmsInstruction instruction = new SmsInstruction();
	instruction.setCouponCode("couponCode");
	instruction.setCouponId("23,233,231");
	instruction.setDescription("测试用例");
	instruction.setInstructionCode("test321");
	smsInstructionDAO.save(instruction);
	
	Map<String, Object> params = new HashMap<String, Object>();
	params.put("couponCode", "couponCode");
	params.put("instructionCode","test321");
	
	Assert.assertEquals(1, smsInstructionDAO.count(params).intValue());
}