public void testNullSystemClassLoaderDefaultsToFurnaceProxyCL() throws Exception
{
ClassLoader thisLoader = SystemClassLoaderNullClassLoaderAdapterTest.class.getClassLoader();
ClassLoader dep1Loader = new EmptyClassLoader();
Class<?> foreignType = dep1Loader.loadClass(ArrayListFactory.class.getName());
Object foreignInstance = foreignType.newInstance();
List<?> proxy = (List<?>) foreignType.getMethod("getArrayList").invoke(foreignInstance);
Assert.assertFalse(Proxies.isForgeProxy(proxy));
Object delegate = foreignType.newInstance();