Using @Rule annotation for expected exceptions