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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.models.X12MessageIdentifier;
import org.junit.jupiter.api.Assertions;

public final class X12MessageIdentifierTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        X12MessageIdentifier model =
            BinaryData.fromString("{\"messageId\":\"mflvest\"}").toObject(X12MessageIdentifier.class);
        Assertions.assertEquals("mflvest", model.messageId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        X12MessageIdentifier model = new X12MessageIdentifier().withMessageId("mflvest");
        model = BinaryData.fromObject(model).toObject(X12MessageIdentifier.class);
        Assertions.assertEquals("mflvest", model.messageId());
    }
}
