Changed expectedException type