Protection judiciaire, expertise