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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties;
import org.junit.jupiter.api.Assertions;

public final class BillingMeterPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BillingMeterProperties model =
            BinaryData
                .fromString(
                    "{\"category\":\"fqweykhmene\",\"meterType\":\"yexfwh\",\"displayName\":\"cibvyvdcsitynn\"}")
                .toObject(BillingMeterProperties.class);
        Assertions.assertEquals("fqweykhmene", model.category());
        Assertions.assertEquals("yexfwh", model.meterType());
        Assertions.assertEquals("cibvyvdcsitynn", model.displayName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        BillingMeterProperties model =
            new BillingMeterProperties()
                .withCategory("fqweykhmene")
                .withMeterType("yexfwh")
                .withDisplayName("cibvyvdcsitynn");
        model = BinaryData.fromObject(model).toObject(BillingMeterProperties.class);
        Assertions.assertEquals("fqweykhmene", model.category());
        Assertions.assertEquals("yexfwh", model.meterType());
        Assertions.assertEquals("cibvyvdcsitynn", model.displayName());
    }
}
