SyntaxFix
Write A Post
Hire A Developer
Questions
Your class MyClass creates a new MyClassToBeTested, instead of using your mock. My article on the Mockito wiki describes two ways of dealing with this.
MyClass
MyClassToBeTested