"Is" in JUnit 4 assertions
2 answers
The documentation says it all:
Decorates another Matcher, keeping the behavior, but allowing the tests to be a little more expressive.
eg. assertThat (cheese, equalTo (smelly))
vs assertThat (cheese, eat (equalTo (smelly)))
http://www.junit.org/apidocs/org/hamcrest/core/Is.html
In other words, you are on the right track.
+1
a source to share