### Question:
SecurityActions { public static void setTCCL(final ClassLoader paramCl) { if (System.getSecurityManager() != null) { System.getSecurityManager().checkPermission(new RuntimePermission("setContextClassLoader")); AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { Thread.currentThread().setContextClassLoader(paramCl); return null; } }); } else { Thread.currentThread().setContextClassLoader(paramCl); } }  static Class<?> loadClass(final Class<?> theClass, final String fullQualifiedName); static Class<?> loadClass(final ClassLoader classLoader, final String fullQualifiedName); static URL loadResource(final Class<?> clazz, final String resourceName); static void setSystemProperty(final String key, final String value); static String getSystemProperty(final String key, final String defaultValue); static ClassLoader getTCCL(); static void setTCCL(final ClassLoader paramCl);  }### Answer:
@Test public void testSetTCCL() { if (RESTRICTED) { expectedException.expect(AccessControlException.class); } SecurityActions.setTCCL(ClassLoader.getSystemClassLoader()); }