I have a spec for a class which uses a stubbed collaborator. Now in my class (let's say class A), I do some manipulation on the collaborator class name (let's say class B) to transform it's own class name into something useful for the class. Problem is: the stubbed collaborator "class B" in the spec is not the real class, but a prophecy object. I'm not in control of the object i'm mocking because it's in a third party library, and I can't provide a getName() or getSignature from it.
Is there a way to extract the original class being doubled in a prophecy object?