// 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.BillingProfileInfo;
import org.junit.jupiter.api.Assertions;

public final class BillingProfileInfoTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BillingProfileInfo model =
            BinaryData
                .fromString(
                    "{\"billingProfileId\":\"hw\",\"billingProfileDisplayName\":\"oldweyuqdu\",\"indirectRelationshipOrganizationName\":\"mnnrwr\"}")
                .toObject(BillingProfileInfo.class);
        Assertions.assertEquals("hw", model.billingProfileId());
        Assertions.assertEquals("oldweyuqdu", model.billingProfileDisplayName());
        Assertions.assertEquals("mnnrwr", model.indirectRelationshipOrganizationName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        BillingProfileInfo model =
            new BillingProfileInfo()
                .withBillingProfileId("hw")
                .withBillingProfileDisplayName("oldweyuqdu")
                .withIndirectRelationshipOrganizationName("mnnrwr");
        model = BinaryData.fromObject(model).toObject(BillingProfileInfo.class);
        Assertions.assertEquals("hw", model.billingProfileId());
        Assertions.assertEquals("oldweyuqdu", model.billingProfileDisplayName());
        Assertions.assertEquals("mnnrwr", model.indirectRelationshipOrganizationName());
    }
}
