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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner;
import com.azure.resourcemanager.synapse.models.ColumnDataType;
import org.junit.jupiter.api.Assertions;

public final class SqlPoolColumnInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SqlPoolColumnInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"columnType\":\"uniqueidentifier\",\"isComputed\":true},\"id\":\"hftqsxhqxujxukn\",\"name\":\"xdigrjg\",\"type\":\"ufzdmsyq\"}")
                .toObject(SqlPoolColumnInner.class);
        Assertions.assertEquals(ColumnDataType.UNIQUEIDENTIFIER, model.columnType());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SqlPoolColumnInner model = new SqlPoolColumnInner().withColumnType(ColumnDataType.UNIQUEIDENTIFIER);
        model = BinaryData.fromObject(model).toObject(SqlPoolColumnInner.class);
        Assertions.assertEquals(ColumnDataType.UNIQUEIDENTIFIER, model.columnType());
    }
}
