Object foreignInstance = dep1Loader
.loadClass(ClassWithClassAsParameter.class.getName())
.getConstructor(Class.class)
.newInstance(foreignType);
ClassLoaderAdapterBuilderDelegateLoader builder = ClassLoaderAdapterBuilder
.callingLoader(thisLoader)
.delegateLoader(dep1Loader);
Object enhancedFilter = builder.enhance(foreignInstance);
ClassWithClassAsParameter classFilter = (ClassWithClassAsParameter) enhancedFilter;
Assert.assertTrue(Proxies.isForgeProxy(classFilter));