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

public final class AssetTrackCollectionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AssetTrackCollection model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\"},\"id\":\"jn\",\"name\":\"bckhsmtxpsi\",\"type\":\"btfhvpesaps\"}]}")
                .toObject(AssetTrackCollection.class);
    }

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