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

package com.azure.resourcemanager.postgresqlflexibleserver.generated;

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

public final class BackupStoreDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BackupStoreDetails model =
            BinaryData
                .fromString("{\"sasUriList\":[\"ndlkzgxhurip\",\"bpodxunkbebxm\",\"byyntwlrbqt\"]}")
                .toObject(BackupStoreDetails.class);
        Assertions.assertEquals("ndlkzgxhurip", model.sasUriList().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        BackupStoreDetails model =
            new BackupStoreDetails().withSasUriList(Arrays.asList("ndlkzgxhurip", "bpodxunkbebxm", "byyntwlrbqt"));
        model = BinaryData.fromObject(model).toObject(BackupStoreDetails.class);
        Assertions.assertEquals("ndlkzgxhurip", model.sasUriList().get(0));
    }
}
