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

package com.azure.resourcemanager.support.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.support.models.QuotaChangeRequest;
import org.junit.jupiter.api.Assertions;

public final class QuotaChangeRequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        QuotaChangeRequest model =
            BinaryData
                .fromString("{\"region\":\"lwtgrhpdj\",\"payload\":\"umasxazjpq\"}")
                .toObject(QuotaChangeRequest.class);
        Assertions.assertEquals("lwtgrhpdj", model.region());
        Assertions.assertEquals("umasxazjpq", model.payload());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        QuotaChangeRequest model = new QuotaChangeRequest().withRegion("lwtgrhpdj").withPayload("umasxazjpq");
        model = BinaryData.fromObject(model).toObject(QuotaChangeRequest.class);
        Assertions.assertEquals("lwtgrhpdj", model.region());
        Assertions.assertEquals("umasxazjpq", model.payload());
    }
}
