createMock(JSONResponse::class); $response = new GenericResponse($httpResponse); self::assertSame($httpResponse, $response->toHttpResponse()); } }