{
emf = Persistence.createEntityManagerFactory(persistenceUnit);
em = emf.createEntityManager();
getDB();
MongoDBClientFactory clientFactory = (MongoDBClientFactory) ClientResolver.getClientFactory(persistenceUnit);
clientFactory.getSchemaManager(null).dropSchema();
DBCollection collection = db.getCollection("MongoDBEntitySimple");
Assert.assertTrue(collection.getIndexInfo().isEmpty());
Assert.assertEquals(0, collection.getCount());
}