Assert.assertNotNull(file);
Assert.assertTrue(file.getClass().equals(File.class));
Object delegate = foreignType.newInstance();
JavaIOFactory enhancedFactory = (JavaIOFactory) ClassLoaderAdapterBuilder.callingLoader(thisLoader)
.delegateLoader(dep1Loader).enhance(delegate);
Assert.assertTrue(Proxies.isForgeProxy(enhancedFactory));
File result = enhancedFactory.getFile();
Assert.assertFalse(Proxies.isForgeProxy(result));
enhancedFactory.useFile(new File("foo"));
}