Is there a way to validate the refactorings, only passing a subset of tests that do not use that reflecting code? Supposedly, even using reflection it should work, because it should use reflective methods on the refactored code. But not sure at all.
Will keep trying as it is very important to us to upgrade our caches to a newer version, but don't want to use classloading isolation in apps due to shared classes between apps.
The first one would be a mock, as expected, and the second should be the actual RPC manager. I can't imagine how you would get proxies for the second instance, even if you are using jarjar'ed code. Could you paste the FQCN of the class you get for 'originalRpcManager' ?