public void testRegexRenameInsertSelective() {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
RegexrenameMapper mapper = sqlSession.getMapper(RegexrenameMapper.class);
Regexrename record = new Regexrename();
record.setZipCode("99999");
mapper.insertSelective(record);
Integer key = 1;
assertEquals(key, record.getId());
Regexrename returnedRecord = mapper.selectByPrimaryKey(key);
assertNull(returnedRecord.getAddress());
assertEquals(record.getId(), returnedRecord.getId());
assertNull(record.getName(), returnedRecord.getName());
assertEquals(record.getZipCode(), returnedRecord.getZipCode());
} finally {
sqlSession.close();
}
}