The test, before the sale
A heater in Sleepy Valley is finished when the steel has failed — a split seam, a base rusted through. It is not finished because it is old, and it is not finished because a part has worn out. Those two mistakes are the expensive ones: a replacement sold against a failed thermocouple, or parts sold against a shell that has already gone.
The middle case is the one that makes people hesitate. The unit heats, but not enough: recovery has slowed, showers end early, the tank rumbles during heating. On water this hard that is usually sediment on the floor, and flushing recovers it if the shell is still sound.
What the job involves
Draining and disconnecting the old heater, getting it out — which on a tight closet can be most of the physical work — setting the new unit with a pan and drain where required, strapping it in the upper and lower thirds, venting to the manufacturer's specification, reconnecting the supply against its requirements, and confirming it heats and shuts off cleanly.
While it is leaking
Close the cold inlet, shut the gas valve or the breaker, and clear the floor. Do not cap the relief valve to stop the drip, and do not let a leaking tank sit above finished floor space while you weigh it up.