handle( $this->createMock(ServerRequestInterface::class) ); $json = json_decode((string) $response->getBody(), null, 512, JSON_THROW_ON_ERROR); self::assertInstanceOf(JsonResponse::class, $response); self::assertTrue(property_exists($json, 'ack') && $json->ack !== null); } }