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

package com.azure.resourcemanager.operationsmanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.operationsmanagement.models.ManagementAssociationProperties;
import org.junit.jupiter.api.Assertions;

public final class ManagementAssociationPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ManagementAssociationProperties model =
            BinaryData.fromString("{\"applicationId\":\"h\"}").toObject(ManagementAssociationProperties.class);
        Assertions.assertEquals("h", model.applicationId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ManagementAssociationProperties model = new ManagementAssociationProperties().withApplicationId("h");
        model = BinaryData.fromObject(model).toObject(ManagementAssociationProperties.class);
        Assertions.assertEquals("h", model.applicationId());
    }
}
