How can you check for a leak in hydraulic brakes?

Check hydraulic brakes by pumping the brake pedal three times before applying firm pressure to the pedal for five seconds. The pedal should not move. If it does, there may be a leak or some other problem in the braking system.
DMV Writen Test