I don't have access to my source code right now but I'm pretty sure I
tried and it was not as simple as that.
When I created a mock of MyClass, calls to instanceof MyClass would
return false, since the mock's type was something like "MyClass
$EnhancedByMockito219781723" or at least that's what the Eclipse
debugger showed.
Is there a way to get around this? How does instanceof work
internally? Does it call getClass()? Would it be a good idea to stub
this method?
Thanks!
-Patricio