Critical Casimir forces in a magnetic system: An experimental protocol