Bundle b = (Bundle) Skeleton.newMock(new Class<?>[] {Bundle.class, ClassLoaderProxy.class});
Skeleton.getSkeleton(b).setReturnValue(new MethodCall(
ClassLoaderProxy.class, "getClassLoader"), weavingLoader);
Object toCall = new AsmProxyManager().createDelegatingProxy(b, Arrays.asList(
getProxyClass(ProxyTestClassAbstract.class), Callable.class), new Callable() {
public Object call() throws Exception {
return weavingLoader.loadClass(ProxyTestClassChildOfAbstract.class.getName()).newInstance();
}