@Test
public void testDoValidateAuth() {
IAuthorizationPolicy policy = mock( IAuthorizationPolicy.class );
List<IAuthorizationAction> actions = new ArrayList();
actions.add( new AdministerSecurityAction() );
doReturn( actions ).when( authorizationActionService ).getActionList();
doReturn( policy ).when( authorizationActionService ).getPolicy();
doReturn( true ).when( policy ).isAllowed( "org.pentaho.security.administerSecurity" );
boolean isAllowed = authorizationActionService.validateAuth( "org.pentaho.security.administerSecurity" );