// 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.fluent.models.ResourceUsageInner;

public final class ResourceUsageInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ResourceUsageInner model =
            BinaryData
                .fromString(
                    "{\"limit\":1125977089,\"unit\":\"vcltbgsncgh\",\"currentValue\":630804167,\"name\":{\"value\":\"zhbijhtxfv\",\"localizedValue\":\"bfs\"}}")
                .toObject(ResourceUsageInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ResourceUsageInner model = new ResourceUsageInner();
        model = BinaryData.fromObject(model).toObject(ResourceUsageInner.class);
    }
}
