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

package com.azure.resourcemanager.storagecache.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagecache.models.ResourceUsageName;
import org.junit.jupiter.api.Assertions;

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

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