CARY – A federal judge has ordered Apple CEO Tim Cook sit for a seven-hour deposition in the legal battle between the technology giant and Cary-based Epic Games. Apple had fought against a sit-down. “The facts of the case go way beyond the historical facts of what happened and when … there is really no one like Apple’s CEO who can testify about how Apple views competition in these various markets that are core to its business model,” said US Magistrate Thomas Hixon on Friday. Epic suited Apple – a longtime business partner – last summer after Apple banned Epic and its globally popular Fortnite game from its app store. Apple countersued, saying Epic violated conractural agreements by coming up with a means of bypassing Apple’s system for required fees associated with in-app purchases. Apple called the fees a “tax.”