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

package com.azure.resourcemanager.hybridnetwork.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionUserConfigurationOsProfile;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class NetworkFunctionUserConfigurationOsProfileTests {
    @Test
    public void testDeserialize() {
        NetworkFunctionUserConfigurationOsProfile model =
            BinaryData
                .fromString("{\"customData\":\"kknryrtihf\"}")
                .toObject(NetworkFunctionUserConfigurationOsProfile.class);
        Assertions.assertEquals("kknryrtihf", model.customData());
    }

    @Test
    public void testSerialize() {
        NetworkFunctionUserConfigurationOsProfile model =
            new NetworkFunctionUserConfigurationOsProfile().withCustomData("kknryrtihf");
        model = BinaryData.fromObject(model).toObject(NetworkFunctionUserConfigurationOsProfile.class);
        Assertions.assertEquals("kknryrtihf", model.customData());
    }
}
