// 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.fluent.models.AssetFilterInner;
import com.azure.resourcemanager.mediaservices.models.AssetFilterCollection;
import java.util.Arrays;

public final class AssetFilterCollectionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AssetFilterCollection model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"tracks\":[]},\"id\":\"klbb\",\"name\":\"vplwzbhv\",\"type\":\"yuguosvmkfssx\"}],\"@odata.nextLink\":\"kkfpl\"}")
                .toObject(AssetFilterCollection.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AssetFilterCollection model =
            new AssetFilterCollection().withValue(Arrays.asList(new AssetFilterInner().withTracks(Arrays.asList())));
        model = BinaryData.fromObject(model).toObject(AssetFilterCollection.class);
    }
}
