2 Chronicles - Chapter 19
King Jehoshaphat established a supreme court in Jerusalem, where people were to be tried under God's law by the Levites, the priests, the leaders and the high priest. The judgement is to be given faithfully and honestly.
"In Jerusalem, Jehoshaphat appointed some of the Levites and priests and clan leaders in Israel to serve as judges for cases involving the Lord’s regulations and for civil disputes. These were his instructions to them: “You must always act in the fear of the Lord, with faithfulness and an undivided heart. Whenever a case comes to you from fellow citizens in an outlying town, whether a murder case or some other violation of God’s laws, commands, decrees, or regulations, you must warn them not to sin against the Lord, so that he will not be angry with you and them. Do this and you will not be guilty. “Amariah the high priest will have final say in all cases involving the Lord. Zebadiah son of Ishmael, a leader from the tribe of Judah, will have final say in all civil cases. The Levites will assist you in making sure that justice is served. Take courage as you fulfill your duties, and may the Lord be with those who do what is right.”"
Jesus was tried before the supreme court of the Jews in Jerusalem, including the high priest. However, his trial did not follow the instructions set out here for faithfulness and honesty in the proceedings.