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

package com.azure.resourcemanager.quota.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.quota.models.ResourceName;
import org.junit.jupiter.api.Assertions;

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

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