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

package com.azure.resourcemanager.devspaces.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devspaces.models.ControllerConnectionDetails;
import com.azure.resourcemanager.devspaces.models.OrchestratorSpecificConnectionDetails;

public final class ControllerConnectionDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ControllerConnectionDetails model =
            BinaryData
                .fromString(
                    "{\"orchestratorSpecificConnectionDetails\":{\"instanceType\":\"OrchestratorSpecificConnectionDetails\"}}")
                .toObject(ControllerConnectionDetails.class);
    }

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