title: Running tests with Spring Data Mongodb auditing enabled
body: <p>I a trying to find way to have the auditing features of spring-data-mongodb when performing some tests.</p>
  
  <p>My tests are basically starting an embedded mongo, and wiring my db component with a MongoTemplate.</p>
  
  <pre><code>public class MyRepoImpl implements MyRepoCustom {
      @Autowired
      public MyRepoImpl(MongoOperations operations) {
          /* init stuff here */
      }
      @Override
      public MyModel runComplexQuery() { /* do stuff here, such as saving data */ }
  }
  </code></pre>
  
  <p>When I am performing the tests, I can't find a way to set up the MongoTemplate in such a way that the auditing takes place (at least for some specific tests), without loading the whole Spring application.</p>
  
  <p>Is there a way to set the MongoTemplate/MongoOperations in order to have the auditing feature running ?</p>