mks.add(mk);
}
final MongoMK mk1 = mks.get(0);
final MongoMK mk2 = mks.get(1);
final MongoMK mk3 = mks.get(2);
Repository r1 = new Jcr(mk1).createRepository();
Repository r2 = new Jcr(mk2).createRepository();
Repository r3 = new Jcr(mk3).createRepository();
Session s1 = r1.login(new SimpleCredentials("admin", "admin".toCharArray()));
Session s2 = r2.login(new SimpleCredentials("admin", "admin".toCharArray()));
Session s3 = r3.login(new SimpleCredentials("admin", "admin".toCharArray()));
ensureIndex(s1.getRootNode(), PROP_NAME);
syncMKs(1);
ensureIndex(s2.getRootNode(), PROP_NAME);
ensureIndex(s3.getRootNode(), PROP_NAME);