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

public final class ContainerHostMappingInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ContainerHostMappingInner model =
            BinaryData
                .fromString(
                    "{\"containerHostResourceId\":\"mhquvgjxp\",\"mappedControllerResourceId\":\"czmehmtzopbsp\"}")
                .toObject(ContainerHostMappingInner.class);
        Assertions.assertEquals("mhquvgjxp", model.containerHostResourceId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ContainerHostMappingInner model = new ContainerHostMappingInner().withContainerHostResourceId("mhquvgjxp");
        model = BinaryData.fromObject(model).toObject(ContainerHostMappingInner.class);
        Assertions.assertEquals("mhquvgjxp", model.containerHostResourceId());
    }
}
