Source:
<code>public void testBuilder() { String prefix = "prefix_"; String auth = "U,V,W"; String visibility = "U,W"; String user = "user"; String password = "password"; boolean useMock = true; boolean useInference = true; boolean displayPlan = false; <START> MongoIndexingConfiguration conf = MongoIndexingConfiguration.builder() END> .setVisibilities(visibility) .setUseInference(useInference) .setDisplayQueryPlan(displayPlan) .setUseMockMongo(useMock) .setMongoCollectionPrefix(prefix) .setMongoDBName("dbname") .setMongoHost("host") .setMongoPort("1000") .setAuths(auth) .setMongoUser(user) .setMongoPassword(password) .setUseMongoEntityIndex(true) .setUseMongoFreetextIndex(true) .setUseMongoTemporalIndex(true) .setMongoFreeTextPredicates("http://pred1", "http://pred2") .setMongoTemporalPredicates("http://pred3", "http://pred4") .build(); Assert.assertEquals(conf.getTablePrefix(), prefix); Assert.assertTrue(Arrays.equals(conf.getAuths(), new String[] { "U", "V", "W" })); Assert.assertEquals(conf.getCv(), visibility); Assert.assertEquals(conf.isInfer(), useInference); Assert.assertEquals(conf.isDisplayQueryPlan(), displayPlan); Assert.assertEquals(conf.getMongoInstance(), "host"); Assert.assertEquals(conf.getBoolean(".useMockInstance", false), useMock); Assert.assertEquals(conf.getMongoPort(), "1000"); Assert.assertEquals(conf.getMongoDBName(), "dbname"); Assert.assertEquals(conf.getCollectionName(), "prefix_"); Assert.assertEquals(conf.get(MongoDBRdfConfiguration.MONGO_USER), user); Assert.assertEquals(conf.get(MongoDBRdfConfiguration.MONGO_USER_PASSWORD), password); Assert.assertTrue( Arrays.equals(conf.getMongoFreeTextPredicates(), new String[] { "http://pred1", "http://pred2" })); Assert.assertTrue( Arrays.equals(conf.getMongoTemporalPredicates(), new String[] { "http://pred3", "http://pred4" })); }</code><technical_language>Nit: Unnecessary "//" characters</technical_language>

Target:
public void testBuilder() { String prefix = "prefix_"; String auth = "U,V,W"; String visibility = "U,W"; String user = "user"; String password = "password"; boolean useMock = true; boolean useInference = true; boolean displayPlan = false; MongoIndexingConfiguration conf = MongoIndexingConfiguration.builder() .setVisibilities(visibility) .setUseInference(useInference) .setDisplayQueryPlan(displayPlan) .setUseMockMongo(useMock) .setMongoCollectionPrefix(prefix) .setMongoDBName("dbname") .setMongoHost("host") .setMongoPort("1000") .setAuths(auth) .setMongoUser(user) .setMongoPassword(password) .setUseMongoEntityIndex(true) .setUseMongoFreetextIndex(true) .setUseMongoTemporalIndex(true) .setMongoFreeTextPredicates("http://pred1", "http://pred2") .setMongoTemporalPredicates("http://pred3", "http://pred4") .build(); assertEquals(conf.getTablePrefix(), prefix); assertTrue(Arrays.equals(conf.getAuths(), new String[] { "U", "V", "W" })); assertEquals(conf.getCv(), visibility); assertEquals(conf.isInfer(), useInference); assertEquals(conf.isDisplayQueryPlan(), displayPlan); assertEquals(conf.getMongoInstance(), "host"); assertEquals(conf.getBoolean(".useMockInstance", false), useMock); assertEquals(conf.getMongoPort(), "1000"); assertEquals(conf.getMongoDBName(), "dbname"); assertEquals(conf.getCollectionName(), "prefix_"); assertEquals(conf.get(MongoDBRdfConfiguration.MONGO_USER), user); assertEquals(conf.get(MongoDBRdfConfiguration.MONGO_USER_PASSWORD), password); assertTrue( Arrays.equals(conf.getMongoFreeTextPredicates(), new String[] { "http://pred1", "http://pred2" })); assertTrue( Arrays.equals(conf.getMongoTemporalPredicates(), new String[] { "http://pred3", "http://pred4" })); }