public void shouldCatchAndRethrowExceptionOfAnUnexpectedType() throws Exception {
UsingMatchers m = new UsingMatchers() {};
try {
Exception exception = m.runAndCatch(UnsupportedOperationException.class, EXCEPTION_BLOCK);
m.fail("Should have thrown IllegalArgumentException");
} catch (IllegalArgumentException e) {
// expected
}
}