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

package com.azure.resourcemanager.synapse.generated;

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

public final class AadAdminPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AadAdminProperties model =
            BinaryData
                .fromString("{\"tenantId\":\"ypq\",\"login\":\"sfj\",\"administratorType\":\"b\",\"sid\":\"hhxud\"}")
                .toObject(AadAdminProperties.class);
        Assertions.assertEquals("ypq", model.tenantId());
        Assertions.assertEquals("sfj", model.login());
        Assertions.assertEquals("b", model.administratorType());
        Assertions.assertEquals("hhxud", model.sid());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AadAdminProperties model =
            new AadAdminProperties().withTenantId("ypq").withLogin("sfj").withAdministratorType("b").withSid("hhxud");
        model = BinaryData.fromObject(model).toObject(AadAdminProperties.class);
        Assertions.assertEquals("ypq", model.tenantId());
        Assertions.assertEquals("sfj", model.login());
        Assertions.assertEquals("b", model.administratorType());
        Assertions.assertEquals("hhxud", model.sid());
    }
}
