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

package com.azure.resourcemanager.mediaservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mediaservices.models.InputFile;
import com.azure.resourcemanager.mediaservices.models.TrackDescriptor;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class InputFileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        InputFile model =
            BinaryData
                .fromString(
                    "{\"@odata.type\":\"#Microsoft.Media.InputFile\",\"filename\":\"ligovibrxkpm\",\"includedTracks\":[{\"@odata.type\":\"TrackDescriptor\"}]}")
                .toObject(InputFile.class);
        Assertions.assertEquals("ligovibrxkpm", model.filename());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        InputFile model =
            new InputFile().withIncludedTracks(Arrays.asList(new TrackDescriptor())).withFilename("ligovibrxkpm");
        model = BinaryData.fromObject(model).toObject(InputFile.class);
        Assertions.assertEquals("ligovibrxkpm", model.filename());
    }
}
