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

package com.azure.resourcemanager.datamigration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datamigration.models.QuotaName;
import org.junit.jupiter.api.Assertions;

public final class QuotaNameTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        QuotaName model =
            BinaryData
                .fromString("{\"localizedValue\":\"thz\",\"value\":\"qdrabhjybigehoqf\"}")
                .toObject(QuotaName.class);
        Assertions.assertEquals("thz", model.localizedValue());
        Assertions.assertEquals("qdrabhjybigehoqf", model.value());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        QuotaName model = new QuotaName().withLocalizedValue("thz").withValue("qdrabhjybigehoqf");
        model = BinaryData.fromObject(model).toObject(QuotaName.class);
        Assertions.assertEquals("thz", model.localizedValue());
        Assertions.assertEquals("qdrabhjybigehoqf", model.value());
    }
}
