title: Instantiate Spring MongoRepository manually
body: <p>I'm trying to test my spring data mongodb repositories, which are interfaces extending from MongoRepository, with <a href="https://github.com/flapdoodle-oss/embedmongo.flapdoodle.de" rel="nofollow">embeddedMongoDb</a>. Like this <a href="http://java.dzone.com/articles/integration-testing-mongodb" rel="nofollow">tutorial</a>, I would like to create tests that don't use spring application context, which is achievable if I were using plain mongoTemplate with my repository classes.</p>
  
  <p>So is it possible to instantiate MongoRepository interface implementation by passing Mongo &amp; MongoTemplate instances, using provided utility methods. I assume spring does that automatically on start-up.</p>