Katy Perry just arrived to an L.A. Federal Courthouse where a trial is set to take place involving her song "Dark Horse."
Perry -- wearing a mint-colored suit -- is expected to testify in the trial today in what has been a lengthy legal battle.
As we reported ... Katy was sued by Christian rapper Flame back in July 2014 after claiming Katy's 2013 hit track "Dark Horse" is a total rip-off of his Grammy-nominated gospel track "Joyful Noise." Flame's music label uploaded the music video in 2008 to YouTube and it has nearly 4 million views.
According to the suit ... Flame says Perry not only jacked their religious music ... she also destroyed his reputation in the Christian music world because they're now associated with the anti-Christian witchcraft and imagery that appears in the "Dark Horse" music video.
Flame claims Katy jacked the underlying beat ... but she's calling BS, saying there are no significant similarities.
After hearing the comparison- I think I have to agree that this content is WAY too similar!