// 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.ConnectToSourceSqlServerTaskOutputDatabaseLevel;

public final class ConnectToSourceSqlServerTaskOutputDatabaseLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectToSourceSqlServerTaskOutputDatabaseLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"DatabaseLevelOutput\",\"name\":\"gfhzovawjvzunlut\",\"sizeMB\":1.0469623162358888,\"databaseFiles\":[{\"databaseName\":\"i\",\"id\":\"ilpjzuaejxdult\",\"logicalName\":\"zbbtdzumveek\",\"physicalFullName\":\"wozuhkf\",\"restoreFullName\":\"sjyofdx\",\"fileType\":\"Fulltext\",\"sizeMB\":98.97743602448948},{\"databaseName\":\"ouwaboekqvkeln\",\"id\":\"vbxwyjsflhh\",\"logicalName\":\"aln\",\"physicalFullName\":\"xisxyawjoyaqcsl\",\"restoreFullName\":\"pkii\",\"fileType\":\"Log\",\"sizeMB\":78.21639765597789}],\"compatibilityLevel\":\"CompatLevel100\",\"databaseState\":\"Online\",\"id\":\"hnrztfol\"}")
                .toObject(ConnectToSourceSqlServerTaskOutputDatabaseLevel.class);
    }

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