According to issue I found, one possible workaround is to useSo instead of: spy(proxy) use mock(TestSubject.class, delegatesTo(springProxy)).In your case (untested by me), that would probably be return Mockito.mock(VirtualControllerService.class, AdditionalAnswers.delegatesTo(virtualControllerService));See for more information. Note that you can not stub or verify internal method calls in your spied instance (only the method call to the mock object will be tracked).
My Favorite Of The Defense Funds. But compared to other defense funds it's not bad. What I found interesting is this fund has had more volatility than other similar funds, but it's also had.
Use case:Useful for spies or partial mocks of objects that are difficult to mock or spy using the usual spy API. Possible use cases: Already custom proxied object.