There is no bullet proof way.
The safest is to use a trust, but as Aaron_C mentions, depending on who the trustee or appointer is the assets may be deemed to belong to you.
Eg if you were both the sole appointer and sole trustee, the court would very likely make a ruling against you, in...