Used before going to court, mediation is a required step in some disputes, depending on the type of case.