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

package com.azure.resourcemanager.elastic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.elastic.models.ElasticCloudDeployment;
import com.azure.resourcemanager.elastic.models.ElasticCloudUser;
import com.azure.resourcemanager.elastic.models.ElasticProperties;

public final class ElasticPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ElasticProperties model =
            BinaryData
                .fromString(
                    "{\"elasticCloudUser\":{\"emailAddress\":\"xofpdvhpfxxypi\",\"id\":\"nmayhuybb\",\"elasticCloudSsoDefaultUrl\":\"odepoogin\"},\"elasticCloudDeployment\":{\"name\":\"mihe\",\"deploymentId\":\"narxzxtheotus\",\"azureSubscriptionId\":\"yevc\",\"elasticsearchRegion\":\"qi\",\"elasticsearchServiceUrl\":\"hungbwjzrnf\",\"kibanaServiceUrl\":\"xgispemvtzfkufu\",\"kibanaSsoUrl\":\"jofxqe\"}}")
                .toObject(ElasticProperties.class);
    }

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