A doctor will test for rigidity by flexing and extending your relaxed wrist and the elbow joint. If rigidity is present it will be felt as an increase in muscle tone with a resistance to these passive movements in both directions and through the full range of movement.
Your doctor will look for sustained (lead pipe) rigidity when performing this movement or intermittent (cogwheel) rigidity if tremor is also present.