assertEquals(0, Long.valueOf(id) % allRolesFactor);
}
// as junit -- should get junit added + onlyAllRolesAdded
setAuthenticationUser("junit");
rsp = server.query(query);
docList = rsp.getResults();
assertEquals(totalJunitAdded + totalOnlyAllRolesAdded, docList.getNumFound());
for (SolrDocument doc : docList) {
String id = doc.getFieldValue("id").toString();
boolean addedJunit = (Long.valueOf(id) % junitFactor) == 0;