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

package com.azure.resourcemanager.resourcemover.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.resourcemover.models.LoadBalancerNatRuleReference;
import org.junit.jupiter.api.Assertions;

public final class LoadBalancerNatRuleReferenceTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LoadBalancerNatRuleReference model =
            BinaryData
                .fromString("{\"name\":\"fssxqukkfplg\",\"sourceArmResourceId\":\"gsxnkjzkdeslpv\"}")
                .toObject(LoadBalancerNatRuleReference.class);
        Assertions.assertEquals("gsxnkjzkdeslpv", model.sourceArmResourceId());
        Assertions.assertEquals("fssxqukkfplg", model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LoadBalancerNatRuleReference model =
            new LoadBalancerNatRuleReference().withSourceArmResourceId("gsxnkjzkdeslpv").withName("fssxqukkfplg");
        model = BinaryData.fromObject(model).toObject(LoadBalancerNatRuleReference.class);
        Assertions.assertEquals("gsxnkjzkdeslpv", model.sourceArmResourceId());
        Assertions.assertEquals("fssxqukkfplg", model.name());
    }
}
