What happens if you get in an accident with a self-driving car?

But with self-driving cars potentially coming to a street near you, what happens if there's an accident here?