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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.QuotaInfo;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class QuotaInfoTests {
    @Test
    public void testDeserialize() {
        QuotaInfo model = BinaryData.fromString("{\"coresUsed\":1083545989}").toObject(QuotaInfo.class);
        Assertions.assertEquals(1083545989, model.coresUsed());
    }

    @Test
    public void testSerialize() {
        QuotaInfo model = new QuotaInfo().withCoresUsed(1083545989);
        model = BinaryData.fromObject(model).toObject(QuotaInfo.class);
        Assertions.assertEquals(1083545989, model.coresUsed());
    }
}
