// 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.UpdateDomainProperties;
import com.azure.resourcemanager.communication.models.UserEngagementTracking;
import org.junit.jupiter.api.Assertions;

public final class UpdateDomainPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UpdateDomainProperties model =
            BinaryData.fromString("{\"userEngagementTracking\":\"Disabled\"}").toObject(UpdateDomainProperties.class);
        Assertions.assertEquals(UserEngagementTracking.DISABLED, model.userEngagementTracking());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        UpdateDomainProperties model =
            new UpdateDomainProperties().withUserEngagementTracking(UserEngagementTracking.DISABLED);
        model = BinaryData.fromObject(model).toObject(UpdateDomainProperties.class);
        Assertions.assertEquals(UserEngagementTracking.DISABLED, model.userEngagementTracking());
    }
}
