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

package com.azure.resourcemanager.timeseriesinsights.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.timeseriesinsights.models.Gen2StorageConfigurationOutput;
import org.junit.jupiter.api.Assertions;

public final class Gen2StorageConfigurationOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Gen2StorageConfigurationOutput model =
            BinaryData
                .fromString("{\"accountName\":\"buhfmvfaxkffeiit\"}")
                .toObject(Gen2StorageConfigurationOutput.class);
        Assertions.assertEquals("buhfmvfaxkffeiit", model.accountName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Gen2StorageConfigurationOutput model = new Gen2StorageConfigurationOutput().withAccountName("buhfmvfaxkffeiit");
        model = BinaryData.fromObject(model).toObject(Gen2StorageConfigurationOutput.class);
        Assertions.assertEquals("buhfmvfaxkffeiit", model.accountName());
    }
}
