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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeTypeProperties;
import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeType;

public final class SelfHostedIntegrationRuntimeTypePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SelfHostedIntegrationRuntimeTypeProperties model =
            BinaryData
                .fromString("{\"linkedInfo\":{\"authorizationType\":\"LinkedIntegrationRuntimeType\"}}")
                .toObject(SelfHostedIntegrationRuntimeTypeProperties.class);
    }

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