In some cases, mediation or negotiation between the parties can help settle matters amicably, avoiding a lengthy trial. The court may suggest mediation before proceeding with a contested divorce trial.