| TestNew | Creates middleware with predefined mocks | Returns mocked JSON response instead of real handler |
| TestMock_Register | Registers a mock response for a path | Mock response is served for registered path |
| TestMock_RegisterMethod | Registers method-specific mock | POST request returns mocked response with status 201 |
| TestMock_Clear | Clears all registered mocks | After clear, real handler is called instead of mock |
| TestWithOptions_DefaultResponse | Uses default response for unmatched paths | Returns default response (503) for any unmatched path |
| TestJSON | Creates JSON response helper | Response has correct status and JSON content type |
| TestText | Creates text response helper | Response contains correct text body and content type |
| TestHTML | Creates HTML response helper | Response has text/html content type |
| TestRedirect | Creates redirect response | Response has correct redirect status and Location header |
| TestError | Creates error response helper | Returns JSON error response with correct status |
| TestPrefix | Mocks all paths matching prefix | Prefixed paths return mock, non-prefixed pass through |
| TestPassthrough | Passes unmatched requests to next handler | Real handler is called when no mock matches |