}
setAuthenticationUser(solrUserName);
CloudSolrServer cloudSolrServer = getCloudSolrServer(collectionName);
try {
cloudSolrServer.deleteByQuery(ALL_DOCS);
cloudSolrServer.commit();
fail("The specified user: " + solrUserName + " shouldn't get deletedocs access!");
} catch (Exception exception) {
assertTrue("Expected " + SENTRY_ERROR_MSG + " in " + exception.toString(),
exception.toString().contains(SENTRY_ERROR_MSG));