How can I make sure my pet is cared for after I die?

A common way to care for pets after their owner passes away is to state in the will who is to care for the animal and then create a testamentary trust for the benefit of the pet.