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

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

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