// 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.ListFirewallsResponseInner;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class ListFirewallsResponseInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ListFirewallsResponseInner model =
            BinaryData
                .fromString(
                    "{\"value\":[\"xw\",\"ywqsmbsurexim\",\"ryocfsfksymdd\",\"stkiiuxhqyud\"],\"nextLink\":\"rrqnbpoczvyifqrv\"}")
                .toObject(ListFirewallsResponseInner.class);
        Assertions.assertEquals("xw", model.value().get(0));
        Assertions.assertEquals("rrqnbpoczvyifqrv", model.nextLink());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ListFirewallsResponseInner model =
            new ListFirewallsResponseInner()
                .withValue(Arrays.asList("xw", "ywqsmbsurexim", "ryocfsfksymdd", "stkiiuxhqyud"))
                .withNextLink("rrqnbpoczvyifqrv");
        model = BinaryData.fromObject(model).toObject(ListFirewallsResponseInner.class);
        Assertions.assertEquals("xw", model.value().get(0));
        Assertions.assertEquals("rrqnbpoczvyifqrv", model.nextLink());
    }
}
