I want my mock to be able to handle any input for the method
val redis = mock[RedisClient]
when(redis.scard(any[String])).thenReturn(Some("hello"))
The error:
org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers!
[info] 2 matchers expected, 1 recorded:
[info] -> at ..(SomeSpec.scala:123)
[info]
[info] This exception may occur if matchers are combined with raw values:
[info] //incorrect:
[info] someMethod(anyObject(), "raw String");