If you are unable to avoid hitting an object in the roadway, you should:

If you cannot avoid hitting an obstacle in the roadway, you should try to hit it at as close to a 90-degree angle as possible. Slow down as much as you can before contact, keep your motorcycle upright, rise slightly off of your seat, and roll the throttle slightly to lighten the front end just before impact.
DMV Writen Test