How to write a Spock test case for handling invalid JSON response in Spring?
I have a class that handles HTTP responses, and it uses response.close() to close the response stream. However, during mutation testing, the call to response.close() is removed, leading to a “NO_COVERAGE” mutant.