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

package com.azure.resourcemanager.costmanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.costmanagement.fluent.models.CostManagementOperationInner;
import com.azure.resourcemanager.costmanagement.models.OperationDisplay;

public final class CostManagementOperationInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CostManagementOperationInner model =
            BinaryData
                .fromString(
                    "{\"id\":\"fcqhsmyurkd\",\"name\":\"lx\",\"isDataAction\":true,\"display\":{\"provider\":\"sjtxukcdmp\",\"resource\":\"cryuan\",\"operation\":\"uxzdxtay\",\"description\":\"hmwhfpmrqo\"},\"origin\":\"system\",\"actionType\":\"Internal\"}")
                .toObject(CostManagementOperationInner.class);
    }

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