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

package com.azure.resourcemanager.billingbenefits.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.billingbenefits.models.SavingsPlanModelListResult;

public final class SavingsPlanModelListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SavingsPlanModelListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"sku\":{\"name\":\"amdecte\"},\"properties\":{\"displayName\":\"qsc\",\"provisioningState\":\"Succeeded\",\"displayProvisioningState\":\"vhezrkgqhcj\",\"billingScopeId\":\"fovgmkqsleyyvxy\",\"billingProfileId\":\"pkc\",\"customerId\":\"tpngjcrcczsqpjh\",\"billingAccountId\":\"daj\",\"term\":\"P1Y\",\"billingPlan\":\"P1M\",\"appliedScopeType\":\"Shared\",\"userFriendlyAppliedScopeType\":\"e\",\"effectiveDateTime\":\"2021-04-17T02:43:52Z\",\"expiryDateTime\":\"2021-02-26T09:02:26Z\",\"purchaseDateTime\":\"2021-10-06T07:30:47Z\",\"benefitStartTime\":\"2021-12-02T06:25:29Z\",\"renew\":false,\"renewSource\":\"mopjmc\",\"renewDestination\":\"tuo\"},\"id\":\"fu\",\"name\":\"uaodsfcpk\",\"type\":\"xodpuozmyzydagfu\"},{\"sku\":{\"name\":\"bezy\"},\"properties\":{\"displayName\":\"kktwhrdxw\",\"provisioningState\":\"Created\",\"displayProvisioningState\":\"sm\",\"billingScopeId\":\"ureximoryocfs\",\"billingProfileId\":\"s\",\"customerId\":\"ddystkiiuxhqy\",\"billingAccountId\":\"xorrqnb\",\"term\":\"P3Y\",\"billingPlan\":\"P1M\",\"appliedScopeType\":\"Single\",\"userFriendlyAppliedScopeType\":\"qrvkdv\",\"effectiveDateTime\":\"2021-03-28T07:52:15Z\",\"expiryDateTime\":\"2021-05-07T06:20:36Z\",\"purchaseDateTime\":\"2021-10-29T02:56:05Z\",\"benefitStartTime\":\"2021-01-12T05:42:21Z\",\"renew\":true,\"renewSource\":\"pulexxbczw\",\"renewDestination\":\"uwiqzb\"},\"id\":\"sovmyokacspkwl\",\"name\":\"zdobpxjmflbvvnch\",\"type\":\"kcciwwzjuqkhr\"}],\"nextLink\":\"jiwkuofoskghsau\",\"additionalProperties\":[{\"name\":\"mvxi\",\"value\":{\"succeededCount\":44.474648,\"failedCount\":93.76809,\"expiringCount\":14.127278,\"expiredCount\":92.58138,\"pendingCount\":4.4311643,\"cancelledCount\":4.827404,\"processingCount\":91.31809,\"noBenefitCount\":2.169633,\"warningCount\":11.6196995}},{\"name\":\"sonpclhocohs\",\"value\":{\"succeededCount\":98.24084,\"failedCount\":34.604973,\"expiringCount\":12.330532,\"expiredCount\":82.52473,\"pendingCount\":2.475369,\"cancelledCount\":76.70067,\"processingCount\":72.908226,\"noBenefitCount\":38.88376,\"warningCount\":3.5906196}},{\"name\":\"feiithlvmez\",\"value\":{\"succeededCount\":75.39976,\"failedCount\":21.34899,\"expiringCount\":27.717447,\"expiredCount\":51.484142,\"pendingCount\":69.09377,\"cancelledCount\":19.846666,\"processingCount\":35.702007,\"noBenefitCount\":73.977356,\"warningCount\":69.34401}},{\"name\":\"rvjx\",\"value\":{\"succeededCount\":22.21101,\"failedCount\":45.751373,\"expiringCount\":68.215355,\"expiredCount\":22.600096,\"pendingCount\":65.57249,\"cancelledCount\":71.57593,\"processingCount\":55.42279,\"noBenefitCount\":57.75545,\"warningCount\":51.713753}}]}")
                .toObject(SavingsPlanModelListResult.class);
    }

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