### Question:
MongoFactory { public MongoClient createMongo() { return MongoClients.create(mongoClientSettings); }  MongoClient createMongo(); void setMongoClientSettings(MongoClientSettings mongoClientSettings);  }### Answer:
@Test void createMongoInstance() { MongoFactory mongoFactory = new MongoFactory(); MongoClient mongoInstance = mongoFactory.createMongo(); assertNotNull(mongoInstance); }