Refactoring - using @Rule and ExpectedException to test exceptions #11