// 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.MessageFilterType;
import com.azure.resourcemanager.logic.models.X12MessageFilter;
import org.junit.jupiter.api.Assertions;

public final class X12MessageFilterTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        X12MessageFilter model =
            BinaryData.fromString("{\"messageFilterType\":\"NotSpecified\"}").toObject(X12MessageFilter.class);
        Assertions.assertEquals(MessageFilterType.NOT_SPECIFIED, model.messageFilterType());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        X12MessageFilter model = new X12MessageFilter().withMessageFilterType(MessageFilterType.NOT_SPECIFIED);
        model = BinaryData.fromObject(model).toObject(X12MessageFilter.class);
        Assertions.assertEquals(MessageFilterType.NOT_SPECIFIED, model.messageFilterType());
    }
}
