@Override
  public void run() {
    SecurityManager sm = System.getSecurityManager();
    if (!(sm instanceof SelSecurityManager)) {
      throw new IllegalStateException("Invalid security manager: " + sm);
    }
    Thread.currentThread().setContextClassLoader(this.classLoader);
    ((SelSecurityManager) sm).setAccessControl(this.acc);
    super.run();
  }
@Test(expected = IllegalStateException.class)
  public void testRunWithoutSecurityManager() {
    t1.run();
  }