I have written a few JUnit tests with @Test annotation. If my test method throws a checked exception and if I want to assert the message along with the exceptio
@Test
If using @Rule, the exception set is applied to all the test methods in the Test class.