### Question:
SmsContentLogDAO extends BaseIbatisDAO { public Object querySmsContentLogByPk(final Long id) { return super.queryForObject( "SMS_CONTENT_LOG.querySmsContentLogByPk", id); }  SmsContentLog save(final SmsContentLog log); void saveBatch(final Map<String, Object> parameters); Object querySmsContentLogByPk(final Long id); @SuppressWarnings({"rawtypes" }) List query(final Map<String, Object> parameters); @SuppressWarnings({ "rawtypes", "unchecked" }) Page pagedQuery(final Map parameterObject, final int currentPage, final int limit); void increaseNumbers(final Serializable id); void updateReport(final Long serialId, final Integer reportStatus, final Date date, final String memo); void updateReport(final String beforeMemo, final Integer reportStatus, final Date date, final String memo); @SuppressWarnings("unchecked") List<SmsLogStat> queryStat(final Map<String, Object> parameters); long queryMMSStat(final Map<String, Object> parameters); void moveSmsContentLogToHis(final Map<String, Object> parameters); long count(final Map<String, Object> parameters); @SuppressWarnings("unchecked") List<SmsContentLog> getListByParams(Map<String, Object> params); Long getListCountByParams(Map<String, Object> params); int updateSmsLog(SmsContentLog smsContentLog); @SuppressWarnings("unchecked") List<SmsContentLog> getSmsLogListByParams(Map<String, Object> paramMap); @SuppressWarnings("unchecked") List<SmsContentLog> getResendSmsLogList();  }### Answer:
@Test public void testQuerySmsContentLogByPk() throws Exception { Assert.assertNull(smsContentLogDAO.querySmsContentLogByPk(-123l)); SmsContentLog log = new SmsContentLog("This is a test log","13917677725"); smsContentLogDAO.save(log); Object result = smsContentLogDAO.querySmsContentLogByPk(log.getId()); Assert.assertNotNull(result); }