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

package com.azure.resourcemanager.azurestack.generated;

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

public final class CustomerSubscriptionPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CustomerSubscriptionProperties model =
            BinaryData.fromString("{\"tenantId\":\"ctazakljlahbcryf\"}").toObject(CustomerSubscriptionProperties.class);
        Assertions.assertEquals("ctazakljlahbcryf", model.tenantId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CustomerSubscriptionProperties model = new CustomerSubscriptionProperties().withTenantId("ctazakljlahbcryf");
        model = BinaryData.fromObject(model).toObject(CustomerSubscriptionProperties.class);
        Assertions.assertEquals("ctazakljlahbcryf", model.tenantId());
    }
}
