The Cardassian Empire was one of the main opponents during the series. There was an episode when Chief O'Brien was arrested by the Cardassians on some trumped up weapon smuggling charges. He is informed that he is guilty of the crime and his court case will begin the next day to conform with that verdict.
Apparently this is standard procedure for the Cardassian courts. They give the verdict; then hold the trial, which is skewed to come up with that result.
Cool story - thanks for sharing. ( Oh, and I’m a ‘Generations’ fan...)