The agreement, which is subject to normal closing requirements, will give Hershey a 51 percent ownership stake in a joint venture that has approximately $70 million in annual net sales, primarily in sugar confectionery and beverages.