In JUnit 4 you can declare expected exception using @Test(expected = SomeException.class) annotation. However, when testing is done using Theories, @Theory annotation does not have expected property.
What is the best way to declare expected exception when testing Theories?
I prefer using ExpectedException rule: