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

package com.azure.resourcemanager.resourcehealth.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.resourcehealth.models.EventPropertiesArticle;
import org.junit.jupiter.api.Assertions;

public final class EventPropertiesArticleTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EventPropertiesArticle model =
            BinaryData
                .fromString(
                    "{\"articleContent\":\"sucocmnyyazttbtw\",\"articleId\":\"qpuedckzywbiex\",\"parameters\":\"dataeyueaxibxujwb\"}")
                .toObject(EventPropertiesArticle.class);
        Assertions.assertEquals("sucocmnyyazttbtw", model.articleContent());
        Assertions.assertEquals("qpuedckzywbiex", model.articleId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        EventPropertiesArticle model =
            new EventPropertiesArticle()
                .withArticleContent("sucocmnyyazttbtw")
                .withArticleId("qpuedckzywbiex")
                .withParameters("dataeyueaxibxujwb");
        model = BinaryData.fromObject(model).toObject(EventPropertiesArticle.class);
        Assertions.assertEquals("sucocmnyyazttbtw", model.articleContent());
        Assertions.assertEquals("qpuedckzywbiex", model.articleId());
    }
}
