I use the following code at the moment to assert on a boolean value, however the method org.hamcrest.Matchers.is() is deprecated.
boolean
org.hamcrest.Matchers.is()
asser
It is said, use instanceOf for class matcher in the document.
instanceOf
http://junit.org/javadoc/latest/org/hamcrest/core/Is.html#isA(java.lang.Class)
is(IOException.class);
will be
is(instanceOf(IOException.class));
for example.