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

public final class ListConnectionDetailsParametersTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ListConnectionDetailsParameters model =
            BinaryData
                .fromString("{\"targetContainerHostResourceId\":\"ifpikxwczby\"}")
                .toObject(ListConnectionDetailsParameters.class);
        Assertions.assertEquals("ifpikxwczby", model.targetContainerHostResourceId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ListConnectionDetailsParameters model =
            new ListConnectionDetailsParameters().withTargetContainerHostResourceId("ifpikxwczby");
        model = BinaryData.fromObject(model).toObject(ListConnectionDetailsParameters.class);
        Assertions.assertEquals("ifpikxwczby", model.targetContainerHostResourceId());
    }
}
