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

public final class IndirectRelationshipInfoTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        IndirectRelationshipInfo model =
            BinaryData
                .fromString(
                    "{\"billingAccountName\":\"bdkvwrwjf\",\"billingProfileName\":\"snhu\",\"displayName\":\"eltmrldhugjzzdat\"}")
                .toObject(IndirectRelationshipInfo.class);
        Assertions.assertEquals("bdkvwrwjf", model.billingAccountName());
        Assertions.assertEquals("snhu", model.billingProfileName());
        Assertions.assertEquals("eltmrldhugjzzdat", model.displayName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        IndirectRelationshipInfo model =
            new IndirectRelationshipInfo()
                .withBillingAccountName("bdkvwrwjf")
                .withBillingProfileName("snhu")
                .withDisplayName("eltmrldhugjzzdat");
        model = BinaryData.fromObject(model).toObject(IndirectRelationshipInfo.class);
        Assertions.assertEquals("bdkvwrwjf", model.billingAccountName());
        Assertions.assertEquals("snhu", model.billingProfileName());
        Assertions.assertEquals("eltmrldhugjzzdat", model.displayName());
    }
}
