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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.models.IntegrationAccountSku;
import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName;
import org.junit.jupiter.api.Assertions;

public final class IntegrationAccountSkuTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        IntegrationAccountSku model =
            BinaryData.fromString("{\"name\":\"Free\"}").toObject(IntegrationAccountSku.class);
        Assertions.assertEquals(IntegrationAccountSkuName.FREE, model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        IntegrationAccountSku model = new IntegrationAccountSku().withName(IntegrationAccountSkuName.FREE);
        model = BinaryData.fromObject(model).toObject(IntegrationAccountSku.class);
        Assertions.assertEquals(IntegrationAccountSkuName.FREE, model.name());
    }
}
