A federal judge has ruled that Liberty Mutual Insurance Co. has to defend and indemnify the Harrisburg-based Hershey Creamery Co.—which is not affiliated with nearby candymaker The Hershey Co.—in a trademark infringement case over milkshake kiosks.

U.S. District Chief Judge Christopher C. Conner of the Middle District of Pennsylvania denied Liberty Mutual’s motion for summary judgment on Hershey Creamery’s claims that the insurer owes a duty to defend and indemnify the company in trademark litigation based in Delaware federal court.