DEFINATELY practice emergency actions! With enough practice you'll do it out of reflex when it's needed. I used to practice hard braking and swerving on my motorcycle all the time. I still feel it saved my life when a car did the exact same move you described. Just use an open area and slowly work up to full braking, or swerving. Especially when using the front brake.