Removed unthrown exception from checked exception clause for test method