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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.EncryptionInTransitProperties;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class EncryptionInTransitPropertiesTests {
    @Test
    public void testDeserialize() {
        EncryptionInTransitProperties model =
            BinaryData
                .fromString("{\"isEncryptionInTransitEnabled\":false}")
                .toObject(EncryptionInTransitProperties.class);
        Assertions.assertEquals(false, model.isEncryptionInTransitEnabled());
    }

    @Test
    public void testSerialize() {
        EncryptionInTransitProperties model =
            new EncryptionInTransitProperties().withIsEncryptionInTransitEnabled(false);
        model = BinaryData.fromObject(model).toObject(EncryptionInTransitProperties.class);
        Assertions.assertEquals(false, model.isEncryptionInTransitEnabled());
    }
}
