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

package com.azure.resourcemanager.sqlvirtualmachine.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.sqlvirtualmachine.models.AdditionalFeaturesServerConfigurations;
import org.junit.jupiter.api.Assertions;

public final class AdditionalFeaturesServerConfigurationsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AdditionalFeaturesServerConfigurations model =
            BinaryData
                .fromString("{\"isRServicesEnabled\":true}")
                .toObject(AdditionalFeaturesServerConfigurations.class);
        Assertions.assertEquals(true, model.isRServicesEnabled());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AdditionalFeaturesServerConfigurations model =
            new AdditionalFeaturesServerConfigurations().withIsRServicesEnabled(true);
        model = BinaryData.fromObject(model).toObject(AdditionalFeaturesServerConfigurations.class);
        Assertions.assertEquals(true, model.isRServicesEnabled());
    }
}
