@Test
public void testAuthAllowed() throws Exception {
SolrAuthzConf solrAuthzConf =
new SolrAuthzConf(Resources.getResource("sentry-site.xml"));
setUsableAuthzConf(solrAuthzConf);
SolrAuthzBinding binding = new SolrAuthzBinding(solrAuthzConf);
binding.authorizeCollection(corporal1, infoCollection, querySet);
binding.authorizeCollection(sergeant1, infoCollection, querySet);
binding.authorizeCollection(sergeant1, infoCollection, updateSet);
binding.authorizeCollection(general1, infoCollection, querySet);
binding.authorizeCollection(general1, infoCollection, updateSet);
binding.authorizeCollection(general1, infoCollection, allSet);
binding.authorizeCollection(general1, infoCollection, allOfSet);
binding.authorizeCollection(general1, generalInfoCollection, querySet);
binding.authorizeCollection(general1, generalInfoCollection, updateSet);
binding.authorizeCollection(general1, generalInfoCollection, allSet);
binding.authorizeCollection(general1, generalInfoCollection, allOfSet);
}