import org.junit.Test;
public class MongoDbDynamicityTest extends AbstractMongoDbTest {
@Test
public void testInsertDynamicityDisabled() {
assertEquals(0, testCollection.count());
<BUG>mongo.getDB("otherDB").dropDatabase();
</BUG>
db.getCollection("otherCollection").drop();
<BUG>assertFalse("The otherDB database should not exist", mongo.getDatabaseNames().contains("otherDB"));
String body = "{\"_id\": \"testInsertDynamicityDisabled\", \"a\" : \"1\"}";</BUG>
Map<String, Object> headers = new HashMap<String, Object>();

import org.junit.Test;
public class MongoDbDynamicityTest extends AbstractMongoDbTest {
@Test
public void testInsertDynamicityDisabled() {
assertEquals(0, testCollection.count());
mongo.getDatabase("otherDB").drop();
db.getCollection("otherCollection").drop();
assertFalse("The otherDB database should not exist",
StreamSupport.stream(mongo.listDatabaseNames().spliterator(), false)
.anyMatch("otherDB"::equals));
String body = "{\"_id\": \"testInsertDynamicityDisabled\", \"a\" : \"1\"}";
Map<String, Object> headers = new HashMap<String, Object>();
