@Test
public void testBlockAuditorRoleUserThrowsErrorForAuditKeyAdmin(){

        RangerBizUtil rangerBizUtilMock = Mockito.mock(RangerBizUtil.class);
vXResponse.setStatusCode(HttpServletResponse.SC_UNAUTHORIZED);
vXResponse.setMsgDesc("Operation denied. LoggedInUser=1 ,isn't permitted to perform the action.");
XXPortalUser xxPortalUser = new XXPortalUser();
xxPortalUser.setId(1L);
        currentUserSession.setAuditKeyAdmin(true);
        RangerSecurityContext context = new RangerSecurityContext();
        context.setUserSession(currentUserSession);
        RangerContextHolder.setSecurityContext(context);
        Mockito.doThrow(new WebApplicationException()).when(rangerBizUtilMock).blockAuditorRoleUser();
        thrown.expect(WebApplicationException.class);
        rangerBizUtilMock.blockAuditorRoleUser();
}