func TestSum(context *gospec.Context) { context.Specify("Sum", func() { num1 := 2 num2 := 3 result := Sum(num1, num2) context.Expect(result).ToEqual(5) }) }In this example, we define a test case for the Sum function which takes two integers and returns their sum. Within the test case, we set up the input values and call the function, and then use the Expect method of the Context object to assert that the result is equal to the expected value. The gospec package is a testing library for Go that provides a clean and expressive syntax for writing test specifications. It is designed to be easy to use and highly readable, making it a popular choice for testing Go code.