Something you need to do before you get a divorce is go to court.