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

package com.azure.resourcemanager.communication.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.communication.fluent.models.EmailServiceProperties;
import org.junit.jupiter.api.Assertions;

public final class EmailServicePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EmailServiceProperties model =
            BinaryData
                .fromString("{\"provisioningState\":\"Failed\",\"dataLocation\":\"ofqweykhmenevfye\"}")
                .toObject(EmailServiceProperties.class);
        Assertions.assertEquals("ofqweykhmenevfye", model.dataLocation());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        EmailServiceProperties model = new EmailServiceProperties().withDataLocation("ofqweykhmenevfye");
        model = BinaryData.fromObject(model).toObject(EmailServiceProperties.class);
        Assertions.assertEquals("ofqweykhmenevfye", model.dataLocation());
    }
}
