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

public final class RequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Request model =
            BinaryData
                .fromString("{\"headers\":\"dataeuel\",\"uri\":\"hsd\",\"method\":\"t\"}")
                .toObject(Request.class);
        Assertions.assertEquals("hsd", model.uri());
        Assertions.assertEquals("t", model.method());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Request model = new Request().withHeaders("dataeuel").withUri("hsd").withMethod("t");
        model = BinaryData.fromObject(model).toObject(Request.class);
        Assertions.assertEquals("hsd", model.uri());
        Assertions.assertEquals("t", model.method());
    }
}
