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

public final class ForecastColumnTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ForecastColumn model =
            BinaryData.fromString("{\"name\":\"ktrmgucnapkt\",\"type\":\"ellwptfdy\"}").toObject(ForecastColumn.class);
        Assertions.assertEquals("ktrmgucnapkt", model.name());
        Assertions.assertEquals("ellwptfdy", model.type());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ForecastColumn model = new ForecastColumn().withName("ktrmgucnapkt").withType("ellwptfdy");
        model = BinaryData.fromObject(model).toObject(ForecastColumn.class);
        Assertions.assertEquals("ktrmgucnapkt", model.name());
        Assertions.assertEquals("ellwptfdy", model.type());
    }
}
