@Before
public void setUp() {
MongoMappingContext mappingContext = new MongoMappingContext();
handler = spy(new IsNewAwareAuditingHandler(mappingContext));
doNothing().when(handler).markCreated(Mockito.any(Object.class));
doNothing().when(handler).markModified(Mockito.any(Object.class));
listener = new AuditingEventListener(new ObjectFactory<IsNewAwareAuditingHandler>() {