@Test
public void testQueryByPrimaryKey() throws Exception {

	SmsInstruction instruction = new SmsInstruction();
	instruction.setCouponCode("couponCode");
	instruction.setCouponId("23,233,231");
	instruction.setDescription("测试用例");
	instruction.setInstructionCode("test321");
	smsInstructionDAO.save(instruction);
	
	SmsInstruction actualSmsInstruction = smsInstructionDAO.queryByPrimaryKey("test321");
	
	Assert.assertEquals(actualSmsInstruction.getInstructionCode(), instruction.getInstructionCode());
	Assert.assertEquals(actualSmsInstruction.getCouponCode(), instruction.getCouponCode());
	Assert.assertEquals(actualSmsInstruction.getDescription(), instruction.getDescription());
	Assert.assertEquals(actualSmsInstruction.getCouponId(), instruction.getCouponId());			
}