Whirpool clothes washer not draining

The washer fills and agitates but will not drain. Multiple cycle settings (perm press, handwash, etc.) all have the same problem. I suspect the pump - but don’t want to replace if it is something else. Is there an easy test for pump failure?

Thanks for any suggestions.