IllegalStateException:4 matchers expected,2 recorded.
this exception usually occurs when matchers are mixed with raw values when recording a method :
对应的代码是:
报错的意思是入参需要4个匹配器,但是只给了3个,看了老半天,一直没明白到底哪儿少了。
后面才发现,这个anyobject实际上不是匹配器,需要调用easymock类里面的anyobject才行