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

public final class DatabaseBackupInfoTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DatabaseBackupInfo model =
            BinaryData
                .fromString(
                    "{\"databaseName\":\"stbz\",\"backupType\":\"Database\",\"backupFiles\":[\"uqn\",\"ophzfylsgcrp\"],\"position\":1192657678,\"isDamaged\":true,\"isCompressed\":true,\"familyCount\":691935711,\"backupFinishDate\":\"2021-01-26T14:06:14Z\"}")
                .toObject(DatabaseBackupInfo.class);
    }

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