@Test
public void testAuditInfoUpdated() {

  DUserMapper mapper = new DUserMapper(supplier);
  Object actual = supplier.createWriteValue(mapper, null, 1L, null);
  Date date = new Date();
  userDao.updateAuditInfo(actual, "first", date,
    null, null, "createdBy", "birthDate");
  assertEquals("first", supplier.getString(actual, "createdBy"));
  assertEquals(date, supplier.getDate(actual, "birthDate"));
  Date date1 = new Date(0L);
  userDao.updateAuditInfo(actual, "second", date1,
    null, null, "createdBy", "birthDate");
  assertEquals("second", supplier.getString(actual, "createdBy"));
  assertEquals(date1, supplier.getDate(actual, "birthDate"));
  // do not mess up
  userDao.updateAuditInfo(actual, null, null,
    null, null, "createdBy", "birthDate");
  assertEquals("second", supplier.getString(actual, "createdBy"));
  assertEquals(date1, supplier.getDate(actual, "birthDate"));
}