I'm trying to use BDD to mock this method:
This is how I mocked:
But I got this error: Cannot resolve method 'willReturn(Class<Comparable>)'
May I know how to resolve this problem?
I also post this question in the stackoverflow. https://stackoverflow.com/questions/76350341/how-to-use-mockito-bdd-to-mock-a-class-return-type-method