Java Mongodb Junit test with Embedded Mongodb

https://github.com/michaelmosmann/embedmongo.flapdoodle.de This is a library for running MongoDB embedded in Java. Normally this is using only for testing purpose and no need to start and stop real mongodb instances.Below example shows how Embedded mongo is working.Create a Maven project and add below dependency in pom.xml