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

package com.azure.resourcemanager.nginx.generated;

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

public final class NginxConfigurationFileTests {
    @Test
    public void testDeserialize() {
        NginxConfigurationFile model =
            BinaryData
                .fromString("{\"content\":\"mppeebvmgxs\",\"virtualPath\":\"kyqduujit\"}")
                .toObject(NginxConfigurationFile.class);
        Assertions.assertEquals("mppeebvmgxs", model.content());
        Assertions.assertEquals("kyqduujit", model.virtualPath());
    }

    @Test
    public void testSerialize() {
        NginxConfigurationFile model =
            new NginxConfigurationFile().withContent("mppeebvmgxs").withVirtualPath("kyqduujit");
        model = BinaryData.fromObject(model).toObject(NginxConfigurationFile.class);
        Assertions.assertEquals("mppeebvmgxs", model.content());
        Assertions.assertEquals("kyqduujit", model.virtualPath());
    }
}
