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

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.fluent.models.AdvancedThreatProtectionSettingInner;
import org.junit.jupiter.api.Assertions;

public final class AdvancedThreatProtectionSettingInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AdvancedThreatProtectionSettingInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"isEnabled\":true},\"id\":\"ijcmmx\",\"name\":\"cufufsrpymz\",\"type\":\"dnsezcxtbzs\"}")
                .toObject(AdvancedThreatProtectionSettingInner.class);
        Assertions.assertEquals(true, model.isEnabled());
    }

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