How do you test an electronic control unit?

Most people swap it out and determin from there.
I know no real way of "bench testing" them.