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

package com.azure.resourcemanager.billing.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.billing.models.ReservationSummary;

public final class ReservationSummaryTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ReservationSummary model =
            BinaryData
                .fromString(
                    "{\"succeededCount\":29.918415,\"failedCount\":93.61522,\"expiringCount\":44.341938,\"expiredCount\":23.334568,\"pendingCount\":75.85746,\"cancelledCount\":61.311485}")
                .toObject(ReservationSummary.class);
    }

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