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

package com.azure.resourcemanager.managednetworkfabric.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.L2IsolationDomainPatchProperties;
import org.junit.jupiter.api.Assertions;

public final class L2IsolationDomainPatchPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        L2IsolationDomainPatchProperties model =
            BinaryData
                .fromString("{\"mtu\":521536914,\"annotation\":\"uko\"}")
                .toObject(L2IsolationDomainPatchProperties.class);
        Assertions.assertEquals("uko", model.annotation());
        Assertions.assertEquals(521536914, model.mtu());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        L2IsolationDomainPatchProperties model =
            new L2IsolationDomainPatchProperties().withAnnotation("uko").withMtu(521536914);
        model = BinaryData.fromObject(model).toObject(L2IsolationDomainPatchProperties.class);
        Assertions.assertEquals("uko", model.annotation());
        Assertions.assertEquals(521536914, model.mtu());
    }
}
