### Question:
SecurityActions { public static ClassLoader getTCCL() { if (System.getSecurityManager() != null) { System.getSecurityManager().checkPermission(new RuntimePermission("getClassLoader")); return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { return Thread.currentThread().getContextClassLoader(); } }); } else { return Thread.currentThread().getContextClassLoader(); } }  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 testGetTCCL() { if (RESTRICTED) { expectedException.expect(AccessControlException.class); } SecurityActions.getTCCL(); }