// 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.EnvironmentResourceProperties;

public final class EnvironmentResourcePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EnvironmentResourceProperties model =
            BinaryData
                .fromString(
                    "{\"dataAccessId\":\"9080e088-cd61-4ce9-9418-b27b6f5d0547\",\"dataAccessFqdn\":\"lfbxzpuzycisp\",\"status\":{\"ingress\":{\"state\":\"Paused\"},\"warmStorage\":{}},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2021-02-05T07:41:31Z\"}")
                .toObject(EnvironmentResourceProperties.class);
    }

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