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