public void setUpClass() throws Exception {
super.setUpClass();
MongodStarter runtime = MongodStarter.getDefaultInstance();
int port = Network.getFreeServerPort();
IMongodConfig mongodConfig = new MongodConfigBuilder()
.version(Version.Main.PRODUCTION)
.net(new Net(port, Network.localhostIsIPv6())).build();
// Store Mongo server "host:port" in Hadoop configuration
// so that MongoStore will be able to get it latter