@Test
public void testIsRestrictedWithNoContextClassloader() {

	Thread thread = Thread.currentThread();
	ClassLoader contextClassLoader = thread.getContextClassLoader();
	thread.setContextClassLoader(null);
	try {
		Assert.assertFalse(
			_isRestricted(
				new RestrictedLiferayObjectWrapper(
					new String[] {TestLiferayObject.class.getName()},
					new String[] {TestLiferayObject.class.getName()}, null),
				TestLiferayObject.class));
	}
	finally {
		thread.setContextClassLoader(contextClassLoader);
	}
}