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

package com.azure.resourcemanager.datamigration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datamigration.models.ConnectToSourceSqlServerTaskOutputLoginLevel;

public final class ConnectToSourceSqlServerTaskOutputLoginLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectToSourceSqlServerTaskOutputLoginLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"LoginLevelOutput\",\"name\":\"rmgucnap\",\"loginType\":\"WindowsUser\",\"defaultDatabase\":\"ellwptfdy\",\"isEnabled\":true,\"migrationEligibility\":{\"isEligibleForMigration\":true,\"validationMessages\":[\"eopzfqrhhuaopp\",\"cq\",\"qxolzdahzx\",\"t\"]},\"id\":\"gbkdmoizpos\"}")
                .toObject(ConnectToSourceSqlServerTaskOutputLoginLevel.class);
    }

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