// 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.ServiceSpecification;

public final class ServiceSpecificationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServiceSpecification model =
            BinaryData
                .fromString(
                    "{\"logSpecifications\":[{\"name\":\"ujitcjcz\",\"displayName\":\"evndh\",\"blobDuration\":\"wpdappdsbdkv\"},{\"name\":\"wjfeusnhutjel\",\"displayName\":\"rl\",\"blobDuration\":\"ugjzzdatqxhocdge\"}],\"metricSpecifications\":[{\"name\":\"phut\",\"displayName\":\"ndv\",\"displayDescription\":\"ozwyiftyhxhuro\",\"unit\":\"Bytes\",\"aggregationType\":\"Total\",\"lockAggregationType\":\"Count\",\"supportedAggregationTypes\":[\"wpwcukjfkgiawxkl\",\"ypl\"],\"dimensions\":[],\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"yypnddhsgcbacphe\",\"sourceMdmNamespace\":\"ot\",\"supportedTimeGrainTypes\":[\"gou\",\"zndlikwy\"]},{\"name\":\"gfgibm\",\"displayName\":\"gakeqsr\",\"displayDescription\":\"bzqqedqytbciq\",\"unit\":\"Bytes\",\"aggregationType\":\"Total\",\"lockAggregationType\":\"Average\",\"supportedAggregationTypes\":[\"zsm\",\"dmgloug\"],\"dimensions\":[],\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"utduqktapspwgcu\",\"sourceMdmNamespace\":\"tumkdosvqwhbm\",\"supportedTimeGrainTypes\":[\"bjf\",\"dgmb\",\"bexppb\",\"tq\"]}]}")
                .toObject(ServiceSpecification.class);
    }

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