you could write a function that mimics what the sensor would do. for example, if you have a ultrasonic sensor that returns the distance to an object by (forgive me if my physics are wrong) sending out sound and waiting for it to come back, you could create primitive (cone, box, cylinder etc.), hide it, send it forward, when it collides, send it back, and test the time it takes. is this what you are getting at?
-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.