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

package com.azure.resourcemanager.netapp.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.netapp.models.BackupRestoreFiles;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class BackupRestoreFilesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BackupRestoreFiles model =
            BinaryData
                .fromString(
                    "{\"fileList\":[\"kkxwslol\"],\"restoreFilePath\":\"pvuzlmv\",\"destinationVolumeId\":\"elfk\"}")
                .toObject(BackupRestoreFiles.class);
        Assertions.assertEquals("kkxwslol", model.fileList().get(0));
        Assertions.assertEquals("pvuzlmv", model.restoreFilePath());
        Assertions.assertEquals("elfk", model.destinationVolumeId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        BackupRestoreFiles model =
            new BackupRestoreFiles()
                .withFileList(Arrays.asList("kkxwslol"))
                .withRestoreFilePath("pvuzlmv")
                .withDestinationVolumeId("elfk");
        model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class);
        Assertions.assertEquals("kkxwslol", model.fileList().get(0));
        Assertions.assertEquals("pvuzlmv", model.restoreFilePath());
        Assertions.assertEquals("elfk", model.destinationVolumeId());
    }
}
