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

package com.azure.resourcemanager.frontdoor.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.frontdoor.models.LatencyMetric;

public final class LatencyMetricTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LatencyMetric model =
            BinaryData
                .fromString(
                    "{\"name\":\"hbxvvyhgsopbyrqu\",\"endDateTimeUTC\":\"g\",\"aValue\":15.345794,\"bValue\":22.12206,\"delta\":32.447994,\"deltaPercent\":93.44803,\"aCLower95CI\":62.546974,\"aHUpper95CI\":29.160892,\"bCLower95CI\":0.5899191,\"bUpper95CI\":92.239586}")
                .toObject(LatencyMetric.class);
    }

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