// 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.administration.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 AccountsGetAccountPropertiesTests extends PurviewAccountClientTestBase {
    @Test
    @Disabled
    public void testAccountsGetAccountPropertiesTests() {
        RequestOptions requestOptions = new RequestOptions();
        Response<BinaryData> response = accountsClient.getAccountPropertiesWithResponse(requestOptions);
        Assertions.assertEquals(200, response.getStatusCode());
        Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue());
        Assertions.assertEquals("14999", response.getHeaders().get("x-ms-ratelimit-remaining-tenant-reads").getValue());
        Assertions.assertEquals("nosniff", response.getHeaders().get("X-Content-Type-Options").getValue());
        Assertions.assertEquals(
                "d5496da4-9c52-402f-b067-83cc9ddea888", response.getHeaders().get("x-ms-request-id").getValue());
        Assertions.assertEquals(
                "25c78f97-0b0a-4fe9-ad39-883a482265cd",
                response.getHeaders().get("x-ms-correlation-request-id").getValue());
        Assertions.assertEquals(
                BinaryData.fromString(
                                "{\"name\":\"account1\",\"type\":\"Microsoft.ProjectBabylon/accounts\",\"id\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1\",\"location\":\"West US 2\",\"properties\":{\"createdAt\":\"2019-11-22T18:39:58.6929344Z\",\"createdBy\":\"client-name\",\"createdByObjectId\":\"client-objectId\",\"endpoints\":{\"catalog\":\"https://account1.catalog.babylon.azure-test.com\",\"guardian\":\"https://account1.guardian.babylon.azure-test.com\",\"scan\":\"https://account1.scan.babylon.azure-test.com\"},\"friendlyName\":\"friendly-account1\",\"managedResources\":{\"eventHubNamespace\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp\",\"resourceGroup\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl\",\"storageAccount\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr\"},\"privateEndpointConnections\":[{\"name\":\"peName-8536c337-7b36-4d67-a7ce-081655baf59e\",\"type\":\"Microsoft.ProjectBabylon/accounts/privateEndpointConnections\",\"id\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e\",\"properties\":{\"privateEndpoint\":{\"id\":\"/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName\"},\"privateLinkServiceConnectionState\":{\"description\":\"Please approve my connection, thanks.\",\"actionsRequired\":\"None\",\"status\":\"Pending\"},\"provisioningState\":\"Succeeded\"}}],\"provisioningState\":\"Succeeded\"},\"sku\":{\"name\":\"Standard\",\"capacity\":4},\"systemData\":{\"createdAt\":\"2019-11-22T18:39:58.6929344Z\",\"createdBy\":\"client-name\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2021-03-16T23:24:34.3430059Z\",\"lastModifiedBy\":\"client-name\",\"lastModifiedByType\":\"User\"}}")
                        .toObject(Object.class),
                response.getValue().toObject(Object.class));
    }
}
