// 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.FilterFileDetails;
import com.azure.resourcemanager.databox.models.FilterFileType;
import org.junit.jupiter.api.Assertions;

public final class FilterFileDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FilterFileDetails model =
            BinaryData
                .fromString("{\"filterFileType\":\"AzureFile\",\"filterFilePath\":\"vfyexfw\"}")
                .toObject(FilterFileDetails.class);
        Assertions.assertEquals(FilterFileType.AZURE_FILE, model.filterFileType());
        Assertions.assertEquals("vfyexfw", model.filterFilePath());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        FilterFileDetails model =
            new FilterFileDetails().withFilterFileType(FilterFileType.AZURE_FILE).withFilterFilePath("vfyexfw");
        model = BinaryData.fromObject(model).toObject(FilterFileDetails.class);
        Assertions.assertEquals(FilterFileType.AZURE_FILE, model.filterFileType());
        Assertions.assertEquals("vfyexfw", model.filterFilePath());
    }
}
