### Question:
SecurityActions { public static Class<?> loadClass(final Class<?> theClass, final String fullQualifiedName) { SecurityManager sm = System.getSecurityManager(); if (fullQualifiedName == null) { return null; } if (sm != null) { sm.checkPackageDefinition(extractPackageNameFromClassName(fullQualifiedName)); return AccessController.doPrivileged(new PrivilegedAction<Class<?>>() { @Override public Class<?> run() { ClassLoader classLoader = theClass.getClassLoader(); Class<?> clazz = loadClass(classLoader, fullQualifiedName); if (clazz == null) { classLoader = Thread.currentThread().getContextClassLoader(); clazz = loadClass(classLoader, fullQualifiedName); } return clazz; } }); } else { ClassLoader classLoader = theClass.getClassLoader(); Class<?> clazz = loadClass(classLoader, fullQualifiedName); if (clazz == null) { classLoader = Thread.currentThread().getContextClassLoader(); clazz = loadClass(classLoader, fullQualifiedName); } return clazz; } }  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 testLoadClass() { SecurityActions.loadClass(SecurityActionsTest.class, "java.lang.String"); if (RESTRICTED) { expectedException.expect(SecurityException.class); } SecurityActions.loadClass(SecurityActions.class, "sun.misc.Unsafe"); }