@Test
public void testIsRestricted() {

	Assert.assertFalse(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(null, null, null),
			TestLiferayObject.class));
	Assert.assertFalse(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				new String[] {TestLiferayObject.class.getName()},
				new String[] {TestLiferayObject.class.getName()}, null),
			TestLiferayObject.class));
	Assert.assertFalse(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null, new String[] {"java.lang.String"}, null),
			TestLiferayObject.class));
	Assert.assertFalse(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null, new String[] {"com.liferay.portal.cache"}, null),
			TestLiferayObject.class));
	Assert.assertTrue(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null, new String[] {TestLiferayObject.class.getName()},
				null),
			TestLiferayObject.class));
	Assert.assertTrue(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null,
				new String[] {"com.liferay.portal.template.freemarker"},
				null),
			TestLiferayObject.class));
	Assert.assertTrue(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null, new String[] {"com.liferay.portal.*"}, null),
			TestLiferayObject.class));
	Assert.assertFalse(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null,
				new String[] {"com.liferay.portal.template.freemarker"},
				null),
			byte.class));
	Assert.assertFalse(
		_isRestricted(
			new RestrictedLiferayObjectWrapper(
				null,
				new String[] {"com.liferay.portal.template.freemarker"},
				null),
			byte.class));
}