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

package com.azure.resourcemanager.recoveryservicesbackup.generated;

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

public final class DiskExclusionPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DiskExclusionProperties model =
            BinaryData
                .fromString("{\"diskLunList\":[1782711093,389915828],\"isInclusionList\":true}")
                .toObject(DiskExclusionProperties.class);
        Assertions.assertEquals(1782711093, model.diskLunList().get(0));
        Assertions.assertEquals(true, model.isInclusionList());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DiskExclusionProperties model =
            new DiskExclusionProperties()
                .withDiskLunList(Arrays.asList(1782711093, 389915828))
                .withIsInclusionList(true);
        model = BinaryData.fromObject(model).toObject(DiskExclusionProperties.class);
        Assertions.assertEquals(1782711093, model.diskLunList().get(0));
        Assertions.assertEquals(true, model.isInclusionList());
    }
}
