Im trying to mock scala call-by name method in mockito. But running into this error.
This exception may occur if matchers are combined with raw value
Can't do it with Mockito: Verifying by-name parameters in Mockito
Should be able to do it with scalamock: How to mock a call-by-name argument (like getOrElse) using ScalaMock?