// Create 3 mongod processes
ImmutableList.Builder<MongoReplicaSet.Member> builder = ImmutableList.builder();
for (int i = 1; i <= 3; ++i) {
Storage storage = new Storage("target/" + replicaSetName + '/' + i, replicaSetName, 20);
MongoReplicaSet.Member member = new MongoReplicaSet.Member();
member.config = new MongodConfigBuilder().version(Versions.withFeatures(new GenericVersion(rsSettings.get("version"))))
.net(new de.flapdoodle.embed.mongo.config.Net(ports[i - 1], Network.localhostIsIPv6())).replication(storage).build();
logger.trace("replSetName in config: {}", member.config.replication().getReplSetName());
member.executable = type.starter.prepare(member.config);
member.process = member.executable.start();
member.address = new ServerAddress(Network.getLocalHost().getHostName(), member.config.net().getPort());