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

package com.azure.resourcemanager.frontdoor.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.frontdoor.models.PreconfiguredEndpointList;
import org.junit.jupiter.api.Assertions;

public final class PreconfiguredEndpointListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PreconfiguredEndpointList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"description\":\"doaon\",\"endpoint\":\"jcntuj\",\"endpointType\":\"AFD\",\"backend\":\"ed\"},\"location\":\"twwaezkojvdcpzf\",\"tags\":{\"x\":\"uicybxarzgszuf\",\"khazxkhnzbonlwn\":\"iqopidoamciod\",\"szzcmrvexztv\":\"oegokdwbwh\",\"gsfraoyzkoow\":\"t\"},\"id\":\"lmnguxaw\",\"name\":\"aldsy\",\"type\":\"uximerqfobw\"},{\"properties\":{\"description\":\"kby\",\"endpoint\":\"t\",\"endpointType\":\"ATM\",\"backend\":\"pagmhrskdsnf\"},\"location\":\"sd\",\"tags\":{\"zev\":\"gtdlmk\",\"ewpusdsttwvogvb\":\"l\",\"m\":\"ejdcngqqmoakuf\"},\"id\":\"zr\",\"name\":\"rdgrtw\",\"type\":\"enuuzkopbm\"}],\"nextLink\":\"rfdwoyu\"}")
                .toObject(PreconfiguredEndpointList.class);
        Assertions.assertEquals("rfdwoyu", model.nextLink());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        PreconfiguredEndpointList model = new PreconfiguredEndpointList().withNextLink("rfdwoyu");
        model = BinaryData.fromObject(model).toObject(PreconfiguredEndpointList.class);
        Assertions.assertEquals("rfdwoyu", model.nextLink());
    }
}
