Testing fuel sending unit

Is there a way to test the fuel sending unit without taking it out? The ground wire seems to be in working order. Thanks for any input.