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

package com.azure.resourcemanager.paloaltonetworks.ngfw.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.RuleCounterResetInner;
import org.junit.jupiter.api.Assertions;

public final class RuleCounterResetInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RuleCounterResetInner model =
            BinaryData
                .fromString(
                    "{\"priority\":\"ubcgjbirxb\",\"ruleStackName\":\"bsrfbj\",\"ruleListName\":\"twss\",\"firewallName\":\"ftpvjzbexil\",\"ruleName\":\"nfqqnvwp\"}")
                .toObject(RuleCounterResetInner.class);
        Assertions.assertEquals("bsrfbj", model.ruleStackName());
        Assertions.assertEquals("twss", model.ruleListName());
        Assertions.assertEquals("ftpvjzbexil", model.firewallName());
        Assertions.assertEquals("nfqqnvwp", model.ruleName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RuleCounterResetInner model =
            new RuleCounterResetInner()
                .withRuleStackName("bsrfbj")
                .withRuleListName("twss")
                .withFirewallName("ftpvjzbexil")
                .withRuleName("nfqqnvwp");
        model = BinaryData.fromObject(model).toObject(RuleCounterResetInner.class);
        Assertions.assertEquals("bsrfbj", model.ruleStackName());
        Assertions.assertEquals("twss", model.ruleListName());
        Assertions.assertEquals("ftpvjzbexil", model.firewallName());
        Assertions.assertEquals("nfqqnvwp", model.ruleName());
    }
}
