The former U.S. ambassador to Ukraine Marie Yovanovitch testified Friday about President Donald Trump firing her amid an alleged “smear campaign.” Firing politically-appointed ambassadors appointed by former presidents is commonplace.

Former President Barack Obama notified all of President George W. Bush’s politically-appointed ambassadors in 2008 that they must vacate their positions, The Washington Post previously reported. Yovanovitch, who was part of the Foreign Service, testified Friday that the Trump administration, including the president’s personal lawyer Rudy Giuliani, “kneecapped” her. She said State Department leaders did not support her after being recalled in May.

“Political ambassadors sometimes are permitted to stay on briefly during a new administration, but the sweeping nature of the directive suggests that Obama has little interest in retaining any of Bush’s ambassadorial appointees,” WaPo’s 2008 article about Obama’s decision to fire all political ambassadors reads.

Yovanovitch was appointed by Obama in 2016. Newly elected presidents typically re-vamp the positions with their own choices once taking office. Yovanovitch stayed on for three years after Trump took office, but has testified that senior officials “declined to acknowledge” the “smear campaign” against her leading up to her firing, Politico reported.

“Often the posts involving the most important bilateral relations (such as with Great Britain, Japan and India) or desirable locales (such as the Bahamas) are given to close friends and well-heeled contributors of the president,” the WaPo article added.

A 2017 Snopes fact-check also noted that Trump firing politically appointed ambassadors was not an unprecedented move.

“The resignation and replacement of ambassadors at the end of an administration is routine,” the fact check reads, adding that some presidents have fired everyone at once while others decide on a case-by-case basis.

The other ambassador to have testified is Gordon Sondland, the U.S. ambassador to the E.U. He testified Oct. 17 that he communicated a quid pro quo to Ukraine. Sondland linked giving military aid to Ukraine with the country agreeing to take part in investigations that Trump asked for in a revised statement, USA Today reported. Trump selected Sondland to the position in 2018. (RELATED: EU Ambassador Revises House Testimony, Says He Discussed Military Aid With Ukrainian Official)

Democrats said during Friday’s public testimony that they were angry at Yovanovitch’s sudden dismissal, despite Obama doing the same thing when he became president in 2008. The testimony comes amid an impeachment inquiry into Trump following an August whistleblower complaint. The whistleblower complaint accused the president of pressuring Ukraine to look into former Vice President Joe Biden and his son, Hunter.

Correction: This article has been updated to indicate that President Barack Obama notified that all politically-appointed ambassadors had to vacate their positions by the 2009 inauguration. Career Foreign Service appointees were not subject to the directive.

Content created by The Daily Caller News Foundation is available without charge to any eligible news publisher that can provide a large audience. For licensing opportunities of our original content, please contact licensing@dailycallernewsfoundation.org.