@Test
public void testCheckUserAccessibleSuccessForAdmin(){

        Collection<String> roleList = new ArrayList<String>();
        roleList.add(RangerConstants.ROLE_SYS_ADMIN);
        Mockito.when(userMgr.getRolesByLoginId(vXUser.getName())).thenReturn(
                        roleList);
        Mockito.when(vXUser.getUserRoleList()).thenReturn(roleList);
        currentUserSession.setUserAdmin(true);
        RangerSecurityContext context = new RangerSecurityContext();
        context.setUserSession(currentUserSession);
        RangerContextHolder.setSecurityContext(context);
        Mockito.when(currentUserSession.isUserAdmin()).thenReturn(true);
        boolean result = rangerBizUtil.checkUserAccessible(vXUser);
        Assert.assertTrue(result);
}