// 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.EventPropertiesRecommendedActionsItem;
import org.junit.jupiter.api.Assertions;

public final class EventPropertiesRecommendedActionsItemTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EventPropertiesRecommendedActionsItem model =
            BinaryData
                .fromString("{\"groupId\":2008133985,\"actionText\":\"v\"}")
                .toObject(EventPropertiesRecommendedActionsItem.class);
        Assertions.assertEquals(2008133985, model.groupId());
        Assertions.assertEquals("v", model.actionText());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        EventPropertiesRecommendedActionsItem model =
            new EventPropertiesRecommendedActionsItem().withGroupId(2008133985).withActionText("v");
        model = BinaryData.fromObject(model).toObject(EventPropertiesRecommendedActionsItem.class);
        Assertions.assertEquals(2008133985, model.groupId());
        Assertions.assertEquals("v", model.actionText());
    }
}
