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

public final class ListAppIdResponseInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ListAppIdResponseInner model =
            BinaryData
                .fromString("{\"value\":[\"ltrpmopj\",\"cma\",\"u\",\"kthfui\"],\"nextLink\":\"odsfcpkvxodpuozm\"}")
                .toObject(ListAppIdResponseInner.class);
        Assertions.assertEquals("ltrpmopj", model.value().get(0));
        Assertions.assertEquals("odsfcpkvxodpuozm", model.nextLink());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ListAppIdResponseInner model =
            new ListAppIdResponseInner()
                .withValue(Arrays.asList("ltrpmopj", "cma", "u", "kthfui"))
                .withNextLink("odsfcpkvxodpuozm");
        model = BinaryData.fromObject(model).toObject(ListAppIdResponseInner.class);
        Assertions.assertEquals("ltrpmopj", model.value().get(0));
        Assertions.assertEquals("odsfcpkvxodpuozm", model.nextLink());
    }
}
