ProxyManager mgr = Skeleton.newMock(ProxyManager.class);
// public Object createDelegatingProxy(Bundle clientBundle, Collection<Class<?>> classes, Callable<Object> dispatcher, Object template) throws UnableToProxyException;
Skeleton.getSkeleton(mgr).registerMethodCallHandler(new MethodCall(ProxyManager.class, "createDelegatingProxy", Bundle.class, Collection.class, Callable.class, Object.class),
new MethodCallHandler()
{
public Object handle(MethodCall methodCall, Skeleton skeleton) throws Exception
{
@SuppressWarnings("unchecked")
Collection<Class<?>> interfaceClasses = (Collection<Class<?>>) methodCall.getArguments()[1];