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

public final class FrontDoorListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FrontDoorListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"resourceState\":\"Enabled\",\"provisioningState\":\"fkgukdkexxppof\",\"cname\":\"axcfjpgddtocjjx\",\"frontdoorId\":\"pmouexhdz\",\"rulesEngines\":[],\"extendedProperties\":{},\"friendlyName\":\"eojnxqbzvddn\",\"routingRules\":[],\"loadBalancingSettings\":[],\"healthProbeSettings\":[],\"backendPools\":[],\"frontendEndpoints\":[],\"enabledState\":\"Disabled\"},\"location\":\"w\",\"tags\":{\"hcffcyddglmjthjq\":\"aoqvuh\"},\"id\":\"wpyeicxmqciwqvh\",\"name\":\"hix\",\"type\":\"igdtopbob\"}],\"nextLink\":\"ghmewuam\"}")
                .toObject(FrontDoorListResult.class);
        Assertions.assertEquals("ghmewuam", model.nextLink());
    }

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