@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
  public void testRun() throws Exception {
    assertEquals(0, i);
    System.setSecurityManager(new SelSecurityManager());
    t2.start();
    t2.join();
    assertEquals(10, i);
    assertNull(ex);
  }