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

public final class NginxPublicIpAddressTests {
    @Test
    public void testDeserialize() {
        NginxPublicIpAddress model =
            BinaryData.fromString("{\"id\":\"pbtoqcjmkl\"}").toObject(NginxPublicIpAddress.class);
        Assertions.assertEquals("pbtoqcjmkl", model.id());
    }

    @Test
    public void testSerialize() {
        NginxPublicIpAddress model = new NginxPublicIpAddress().withId("pbtoqcjmkl");
        model = BinaryData.fromObject(model).toObject(NginxPublicIpAddress.class);
        Assertions.assertEquals("pbtoqcjmkl", model.id());
    }
}
