Correctly parse single-line @expectedException annotations