}
@Test
public void basicAuditing() throws Exception {
AuditableUser user = new AuditableUser(null);
user.setFirstname("user");
AuditableUser savedUser = auditableUserRepository.save(user);
TimeUnit.MILLISECONDS.sleep(10);
assertThat(savedUser.getCreatedDate(), is(notNullValue()));
assertThat(savedUser.getCreatedDate().isBeforeNow(), is(true));
AuditableUser createdBy = savedUser.getCreatedBy();
assertThat(createdBy, is(notNullValue()));
assertThat(createdBy.getFirstname(), is(this.auditor.getFirstname()));
}