Court-martial
In the 2008 to 2014 sci-fiction animated TV show "Star Wars: The Clone Wars's 2011 fourth season's episode "Plan of Dissent" clone troopers Fives and Jesse, both serving in the Grand Army of the Republic, act against orders from their acting superior in a war situation and in revenge are threatened with court-martial and consequent execution. They found themselves court-martialed and about to be executed by firing squad in the next episode, although the final execution did not happen despite them being found guilty

See also: Cashiering
Military trial films

References: 

Notes: 

Citations: 

Sources: 

Further reading: Macomb, Alexander, Major General of the United States Army, The Practice of Courts Martial, (New York: Harper & Brothers, 1841) 154 pages.
Macomb, Alexander, A Treatise on Martial Law, and Courts-Martial as Practiced in the United States. (Charleston: J. Hoff, 1809), republished (New York: Lawbook Exchange, June 2007), ISBN 1-58477-709-5, ISBN 978-1-58477-709-0, 340 pages.

External links: 
Manual for Courts-Martial (MCM), United States (2008 Edition) PDF document
2002 Amendments to the Manual for Courts-Martial (MCM), United States
Congressional Research Service Report for Congress 2004, United States
Website for the Office of the Chief Military Judge of the Canadian Forces
The Court Martial Act 2007 of New Zealand
"the definition of court-martial". www.dictionary.com.