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

package com.azure.resourcemanager.dataprotection.generated;

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

public final class BlobBackupDatasourceParametersTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BlobBackupDatasourceParameters model =
            BinaryData
                .fromString(
                    "{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[\"evxccedcp\",\"md\"]}")
                .toObject(BlobBackupDatasourceParameters.class);
        Assertions.assertEquals("evxccedcp", model.containersList().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        BlobBackupDatasourceParameters model =
            new BlobBackupDatasourceParameters().withContainersList(Arrays.asList("evxccedcp", "md"));
        model = BinaryData.fromObject(model).toObject(BlobBackupDatasourceParameters.class);
        Assertions.assertEquals("evxccedcp", model.containersList().get(0));
    }
}
