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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem;
import org.junit.jupiter.api.Assertions;

public final class ContainerAppProbeHttpGetHttpHeadersItemTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ContainerAppProbeHttpGetHttpHeadersItem model =
            BinaryData
                .fromString("{\"name\":\"rjaltolmncw\",\"value\":\"obqwcsdbnwdcfh\"}")
                .toObject(ContainerAppProbeHttpGetHttpHeadersItem.class);
        Assertions.assertEquals("rjaltolmncw", model.name());
        Assertions.assertEquals("obqwcsdbnwdcfh", model.value());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ContainerAppProbeHttpGetHttpHeadersItem model =
            new ContainerAppProbeHttpGetHttpHeadersItem().withName("rjaltolmncw").withValue("obqwcsdbnwdcfh");
        model = BinaryData.fromObject(model).toObject(ContainerAppProbeHttpGetHttpHeadersItem.class);
        Assertions.assertEquals("rjaltolmncw", model.name());
        Assertions.assertEquals("obqwcsdbnwdcfh", model.value());
    }
}
