Switched Exception testing to use '@Rule' annotation.