// 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.models.ListCustomAlertRule;
import org.junit.jupiter.api.Assertions;

public final class ListCustomAlertRuleTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ListCustomAlertRule model =
            BinaryData
                .fromString(
                    "{\"ruleType\":\"ListCustomAlertRule\",\"valueType\":\"String\",\"displayName\":\"xnj\",\"description\":\"seiphe\",\"isEnabled\":false}")
                .toObject(ListCustomAlertRule.class);
        Assertions.assertEquals(false, model.isEnabled());
    }

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