// 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 ReceivedSharesRegisterTenantEmailRegistrationTests extends PurviewShareClientTestBase {
    @Test
    @Disabled
    public void testReceivedSharesRegisterTenantEmailRegistrationTests() {
        RequestOptions requestOptions = new RequestOptions();
        Response<BinaryData> response =
                receivedSharesClient.registerTenantEmailRegistrationWithResponse(requestOptions);
        Assertions.assertEquals(200, response.getStatusCode());
        Assertions.assertEquals("Wed, 13 Sep 2017 18:04:32 GMT", response.getHeaders().get("Date").getValue());
        Assertions.assertEquals(
                "b470712a-ffbc-4d9f-ab99-6640db8bbcb8",
                response.getHeaders().get("repeatability-request-id").getValue());
        Assertions.assertEquals(
                "25c78f97-0b0a-4fe9-ad39-883a482265cd",
                response.getHeaders().get("x-ms-correlation-request-id").getValue());
        Assertions.assertEquals(
                BinaryData.fromString(
                                "{\"type\":\"tenantEmailRegistration\",\"id\":\"cb817140-a0cf-464f-8a82-0a9627a026ab\",\"properties\":{\"activationCode\":\"15ee7153fe0df5a3a449a897d6cec836\",\"activationExpiration\":\"2022-08-16T22:35:17.2093506Z\",\"email\":\"john.smith@contoso.com\",\"registrationStatus\":\"ActivationPending\",\"state\":\"Succeeded\",\"tenantId\":\"f686d426-8d16-42db-81b7-ab578e110ccd\"}}")
                        .toObject(Object.class),
                response.getValue().toObject(Object.class));
    }
}
