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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration;
import org.junit.jupiter.api.Assertions;

public final class AzureStaticWebAppsRegistrationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AzureStaticWebAppsRegistration model =
            BinaryData.fromString("{\"clientId\":\"ymzidn\"}").toObject(AzureStaticWebAppsRegistration.class);
        Assertions.assertEquals("ymzidn", model.clientId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AzureStaticWebAppsRegistration model = new AzureStaticWebAppsRegistration().withClientId("ymzidn");
        model = BinaryData.fromObject(model).toObject(AzureStaticWebAppsRegistration.class);
        Assertions.assertEquals("ymzidn", model.clientId());
    }
}
