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

package com.azure.resourcemanager.purview.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.purview.models.DimensionProperties;
import org.junit.jupiter.api.Assertions;

public final class DimensionPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DimensionProperties model =
            BinaryData
                .fromString(
                    "{\"displayName\":\"edckzywbiexzfey\",\"name\":\"axibxujw\",\"toBeExportedForCustomer\":true}")
                .toObject(DimensionProperties.class);
        Assertions.assertEquals("edckzywbiexzfey", model.displayName());
        Assertions.assertEquals("axibxujw", model.name());
        Assertions.assertEquals(true, model.toBeExportedForCustomer());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DimensionProperties model =
            new DimensionProperties()
                .withDisplayName("edckzywbiexzfey")
                .withName("axibxujw")
                .withToBeExportedForCustomer(true);
        model = BinaryData.fromObject(model).toObject(DimensionProperties.class);
        Assertions.assertEquals("edckzywbiexzfey", model.displayName());
        Assertions.assertEquals("axibxujw", model.name());
        Assertions.assertEquals(true, model.toBeExportedForCustomer());
    }
}
