Cockerel in legal case to test France’s new law to protect rural heritage