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

public final class RulesEngineListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RulesEngineListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"resourceState\":\"Disabling\",\"rules\":[]},\"id\":\"xgwim\",\"name\":\"njhf\",\"type\":\"xw\"}],\"nextLink\":\"zk\"}")
                .toObject(RulesEngineListResult.class);
        Assertions.assertEquals("zk", model.nextLink());
    }

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