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

package com.azure.resourcemanager.elasticsan.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.elasticsan.fluent.models.ElasticSanUpdateProperties;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ElasticSanUpdatePropertiesTests {
    @Test
    public void testDeserialize() {
        ElasticSanUpdateProperties model =
            BinaryData
                .fromString("{\"baseSizeTiB\":907638754546671193,\"extendedCapacitySizeTiB\":1576812091412764436}")
                .toObject(ElasticSanUpdateProperties.class);
        Assertions.assertEquals(907638754546671193L, model.baseSizeTiB());
        Assertions.assertEquals(1576812091412764436L, model.extendedCapacitySizeTiB());
    }

    @Test
    public void testSerialize() {
        ElasticSanUpdateProperties model =
            new ElasticSanUpdateProperties()
                .withBaseSizeTiB(907638754546671193L)
                .withExtendedCapacitySizeTiB(1576812091412764436L);
        model = BinaryData.fromObject(model).toObject(ElasticSanUpdateProperties.class);
        Assertions.assertEquals(907638754546671193L, model.baseSizeTiB());
        Assertions.assertEquals(1576812091412764436L, model.extendedCapacitySizeTiB());
    }
}
