// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.analytics.purview.sharing.generated;

import com.azure.core.http.rest.RequestOptions;
import com.azure.core.http.rest.Response;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public final class SentSharesGetBlobAccountTests extends PurviewShareClientTestBase {
    @Test
    @Disabled
    public void testSentSharesGetBlobAccountTests() {
        RequestOptions requestOptions = new RequestOptions();
        Response<BinaryData> response =
                sentSharesClient.getSentShareWithResponse("FF4A2AAE-8755-47BB-9C00-A774B5A7006E", requestOptions);
        Assertions.assertEquals(200, response.getStatusCode());
        Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue());
        Assertions.assertEquals(
                "25c78f97-0b0a-4fe9-ad39-883a482265cd",
                response.getHeaders().get("x-ms-correlation-request-id").getValue());
        Assertions.assertEquals(
                BinaryData.fromString(
                                "{\"type\":\"SentShare\",\"id\":\"FF4A2AAE-8755-47BB-9C00-A774B5A7006E\",\"properties\":{\"description\":\"description\",\"artifact\":{\"properties\":{\"paths\":[{\"containerName\":\"container1\",\"receiverPath\":\"ShareFile.txt\",\"senderPath\":\"directory/file.txt\"}]},\"storeKind\":\"BlobAccount\",\"storeReference\":{\"type\":\"ArmResourceReference\",\"referenceName\":\"/subscriptions/de06c3a0-4610-4ca0-8cbb-bbdac204bd65/resourceGroups/sender-storage-rg/providers/Microsoft.Storage/storageAccounts/providerstorage\"}},\"createdAt\":\"2021-07-21T23:45:35.3708674Z\",\"dependsOn\":[],\"displayName\":\"sentShare1\",\"senderEmail\":\"johnsmith@contoso.com\",\"senderName\":\"John Smith\",\"senderTenantName\":\"Contoso\",\"state\":\"Succeeded\"},\"shareKind\":\"InPlace\"}")
                        .toObject(Object.class),
                response.getValue().toObject(Object.class));
    }
}
