// 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.RecommendedSensitivityLabelUpdateProperties;
import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind;
import org.junit.jupiter.api.Assertions;

public final class RecommendedSensitivityLabelUpdatePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RecommendedSensitivityLabelUpdateProperties model =
            BinaryData
                .fromString(
                    "{\"op\":\"enable\",\"schema\":\"qunyowxwlmdjr\",\"table\":\"vfgbvfvpdboda\",\"column\":\"izsjqlhkrr\"}")
                .toObject(RecommendedSensitivityLabelUpdateProperties.class);
        Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op());
        Assertions.assertEquals("qunyowxwlmdjr", model.schema());
        Assertions.assertEquals("vfgbvfvpdboda", model.table());
        Assertions.assertEquals("izsjqlhkrr", model.column());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RecommendedSensitivityLabelUpdateProperties model =
            new RecommendedSensitivityLabelUpdateProperties()
                .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE)
                .withSchema("qunyowxwlmdjr")
                .withTable("vfgbvfvpdboda")
                .withColumn("izsjqlhkrr");
        model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdateProperties.class);
        Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op());
        Assertions.assertEquals("qunyowxwlmdjr", model.schema());
        Assertions.assertEquals("vfgbvfvpdboda", model.table());
        Assertions.assertEquals("izsjqlhkrr", model.column());
    }
}
