@Test
public void testGetByPrimaryKey() throws Exception {

	SmsContent smsContent = new SmsContent("Test Sms", "13917677725");
	smsContentDAO.save(smsContent);
	
	SmsContent content = smsContentDAO.getByPrimaryKey(smsContent.getId());
	Assert.assertNotNull(content.getId());
	Assert.assertEquals("Test Sms", content.getContent());
	Assert.assertEquals("13917677725", content.getMobile());
	Assert.assertEquals(5, content.getPriority().intValue());
	Assert.assertNull(content.getType());
	Assert.assertNotNull(content.getSendDate());
	Assert.assertEquals(0, content.getFailure());
}