// 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.StreamingPolicyWidevineConfiguration;
import org.junit.jupiter.api.Assertions;

public final class StreamingPolicyWidevineConfigurationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StreamingPolicyWidevineConfiguration model =
            BinaryData
                .fromString("{\"customLicenseAcquisitionUrlTemplate\":\"bzmnvdfznud\"}")
                .toObject(StreamingPolicyWidevineConfiguration.class);
        Assertions.assertEquals("bzmnvdfznud", model.customLicenseAcquisitionUrlTemplate());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        StreamingPolicyWidevineConfiguration model =
            new StreamingPolicyWidevineConfiguration().withCustomLicenseAcquisitionUrlTemplate("bzmnvdfznud");
        model = BinaryData.fromObject(model).toObject(StreamingPolicyWidevineConfiguration.class);
        Assertions.assertEquals("bzmnvdfznud", model.customLicenseAcquisitionUrlTemplate());
    }
}
