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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.models.WorkflowTriggerListCallbackUrlQueries;
import org.junit.jupiter.api.Assertions;

public final class WorkflowTriggerListCallbackUrlQueriesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkflowTriggerListCallbackUrlQueries model =
            BinaryData
                .fromString(
                    "{\"api-version\":\"jqabcypmivkwlzuv\",\"sp\":\"fwnfnb\",\"sv\":\"fionl\",\"sig\":\"x\",\"se\":\"qgtz\"}")
                .toObject(WorkflowTriggerListCallbackUrlQueries.class);
        Assertions.assertEquals("jqabcypmivkwlzuv", model.apiVersion());
        Assertions.assertEquals("fwnfnb", model.sp());
        Assertions.assertEquals("fionl", model.sv());
        Assertions.assertEquals("x", model.sig());
        Assertions.assertEquals("qgtz", model.se());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WorkflowTriggerListCallbackUrlQueries model =
            new WorkflowTriggerListCallbackUrlQueries()
                .withApiVersion("jqabcypmivkwlzuv")
                .withSp("fwnfnb")
                .withSv("fionl")
                .withSig("x")
                .withSe("qgtz");
        model = BinaryData.fromObject(model).toObject(WorkflowTriggerListCallbackUrlQueries.class);
        Assertions.assertEquals("jqabcypmivkwlzuv", model.apiVersion());
        Assertions.assertEquals("fwnfnb", model.sp());
        Assertions.assertEquals("fionl", model.sv());
        Assertions.assertEquals("x", model.sig());
        Assertions.assertEquals("qgtz", model.se());
    }
}
