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

package com.azure.resourcemanager.maps.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.maps.fluent.models.CreatorProperties;
import org.junit.jupiter.api.Assertions;

public final class CreatorPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CreatorProperties model =
            BinaryData
                .fromString("{\"provisioningState\":\"cbtwnpzaoqvuh\",\"storageUnits\":2040818894}")
                .toObject(CreatorProperties.class);
        Assertions.assertEquals(2040818894, model.storageUnits());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CreatorProperties model = new CreatorProperties().withStorageUnits(2040818894);
        model = BinaryData.fromObject(model).toObject(CreatorProperties.class);
        Assertions.assertEquals(2040818894, model.storageUnits());
    }
}
