key.setSeqNum(new Integer(3));
key.setId(new Integer(22));
int rows = dao.updateByExample(key, example);
assertEquals(1, rows);
example.clear();
example.createCriteria()
.andIdEqualTo(new Integer(22))
.andSeqNumEqualTo(new Integer(3));
rows = dao.countByExample(example);