Use JUnit rule for exception assertions