AwfulTableExample example = new AwfulTableExample();
example.createCriteria().andEMailLike("fred2@%");
int rows = mapper.updateByExample(newRecord, example);
assertEquals(1, rows);
example.clear();
example.createCriteria().andCustomerIdEqualTo(58);
List<AwfulTable> answer = mapper.selectByExample(example);
assertEquals(1, answer.size());
AwfulTable returnedRecord = answer.get(0);