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

package com.azure.resourcemanager.databox.generated;

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

public final class BlobFilterDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BlobFilterDetails model =
            BinaryData
                .fromString(
                    "{\"blobPrefixList\":[\"wtgrhpdjpj\",\"masxazjpqyegu\",\"lhbxxhejjzzvdud\"],\"blobPathList\":[\"slfhotwm\",\"ynpwlbj\",\"pgacftadehxnlty\"],\"containerList\":[\"ppusuesnzwdejba\",\"orxzdmohctbqvud\",\"xdn\"]}")
                .toObject(BlobFilterDetails.class);
        Assertions.assertEquals("wtgrhpdjpj", model.blobPrefixList().get(0));
        Assertions.assertEquals("slfhotwm", model.blobPathList().get(0));
        Assertions.assertEquals("ppusuesnzwdejba", model.containerList().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        BlobFilterDetails model =
            new BlobFilterDetails()
                .withBlobPrefixList(Arrays.asList("wtgrhpdjpj", "masxazjpqyegu", "lhbxxhejjzzvdud"))
                .withBlobPathList(Arrays.asList("slfhotwm", "ynpwlbj", "pgacftadehxnlty"))
                .withContainerList(Arrays.asList("ppusuesnzwdejba", "orxzdmohctbqvud", "xdn"));
        model = BinaryData.fromObject(model).toObject(BlobFilterDetails.class);
        Assertions.assertEquals("wtgrhpdjpj", model.blobPrefixList().get(0));
        Assertions.assertEquals("slfhotwm", model.blobPathList().get(0));
        Assertions.assertEquals("ppusuesnzwdejba", model.containerList().get(0));
    }
}
