Update the magnets2.go example with a real-world test case.