title: How I can clean Embedded Mongodb before each test class
body: <p>I am writing tests for my application by class and have order method to do a specific scenario for each class, if I test each class separately it's work perfect but when I run <code>mvn verfiy</code> only the first-class success and the others filled because all of them use the <strong>same database</strong> when maven run. </p>
  
  <p>how I can clean the database or drop and re-create it for each class? or if I can re-init the spring context for each class and it can re-create the database.</p>
  
  <p>lib: <code>SpirngBoot(2.3.0)</code>, <code>de.flapdoodle.embed.mongo(2.2.0)</code>, <code>Junit5(5.5.2)</code></p>
  
  <p>Sample code of each class:</p>
  
  <pre><code>@SpringBootTest
  @ExtendWith(SpringExtension::class)
  @TestMethodOrder(MethodOrderer.OrderAnnotation::class)
  @TestInstance(TestInstance.Lifecycle.PER_CLASS)
  class DefaultValuesTest {
  
      @Autowired
      private lateinit var testData: TestDataInit
  
      @Autowired
      private lateinit var usersRepo: UsersRepo
  
      @BeforeAll
      fun init() {
          testData.init()
      }
  
      @Test
      @Order(1)
      fun `check if init with default values`() {
          val users = usersRepo.findAll()
          Assertions.assertFalse(users.isNullOrEmpty())
      }
  }
  </code></pre>
  
  <p>When every class start the method <code>testData.init()</code> the data exist before and some unique index throw errors.</p>