A brittle test fails when implementation details change, even though the application still produces the correct externally observable behavior. Prefer tests that verify responses and behavior rather than internal structure. section 36.3.2
Behavior-focused integration test
A test can send a GET request to /ping and check for a successful response and the expected result. It remains useful even if the middleware or other internal implementation changes, provided the application still responds correctly. section 36.3.2


