例外が発生します
org.mockito.exceptions.misusing.InvalidUseOfMatchersException:
Invalid use of argument matchers!
2 matchers expected, 1 recorded:
コード行
when(messageSource.getMessage(eq(SUCCESS_MESSAGE_KEY), any(Object[].class), any(Locale.class))).thenReturn(anyString());
messageSource は org.springframework.context.MessageSource 型です。Mockito のバージョンは 1.9.5 です。誰が問題が何であるかを推測できますか?