A method and device for testing the function of a radar. A diode (21) with variable radar radiation impedance is arranged in the beam path (23) inside the antenna unit (4, 6) of the car radar and is fed with alternating current for simulating a radar target at a distance from the antenna unit. The obtained target data for the simulated target are compared to the expected target data for testing the function.