Use case:
- There is a class which is annotated as Mocked for a unit test.
- This class has a method which is recorded in an Expectations block.
- The recorded method returns an Object type (not void or primitive or String).
- We have a second class which happens to be in the same package as the first class, and whose name happens to start with the name of the first class.
- The second class is annotated as a Cascading mock for the test.
Result : When recording the expectations block, a NoSuchMethodException is thrown and causes a test failure.