public void apply() throws IllegalStateException {
  try {
    System.setSecurityManager(this);
  }
 catch (  SecurityException e) {
    logger.error("Cannot instantiate mock security manager",e);
    throw new IllegalStateException(e);
  }
}

public void apply ( ) throws IllegalStateException { try { System . setSecurityManager ( this ) ; } catch ( SecurityException e ) { logger . error ( "Cannot instantiate mock security manager" , e ) ; throw new IllegalStateException ( e ) ; } }
use this manager as security manager
