Which is true as the string date representaion is different to the data the file was last modified.
Invalid use of argument matchers!
2 matchers expected, 1 recorded.
This exception may occur if matchers are combined with raw values:
someMethod(anyObject(), "raw String");
When using matchers, all arguments have to be provided by matchers.
someMethod(anyObject(), eq("String by matcher"));
Thanks for any help Tony
subject: Mockito problem testing for a boolean value