Leonardo DiCaprio, who played disgraced stockbroker Jordan Belfort in “The Wolf of Wall Street,” has been ordered to testify in a court case involving the making of the film, ruled Steven Locke, the magistrate judge for the Eastern District of New York, on Thursday.

One of the brokers at the infamous Stratton Oakmont brokerage firm, which was portrayed in the movie as a den of degenerate behavior involving drugs and sex, as well as greed, is suing Paramount Pictures for what he claims is his portrayal in the film.

Andrew Greene is suing for $25 million in damages because he says the movie portrays him as “a criminal, a drug user and a degenerate” through the character Nicky “Rugrat” Koskoff, played by P.J. Byrne. Paramount claims the Koskoff character is a fictional composite, not meant to be Greene, according to a report on CNN.

DiCaprio played the lead in the film, which was nominated for an Academy Award for best picture in 2014, and the suit claims DiCaprio met with director Martin Scorsese and screenwriter Terence Winter to help develop the movie. Scorsese and Winter have already given depositions.

DiCaprio’s attorneys argued that since the actor did not write the screenplay, direct the film, nor portray Nicky, he should not be required to give a deposition, CNN says.