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

public final class ImpactedRegionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ImpactedRegion model =
            BinaryData.fromString("{\"id\":\"ftpvjzbexil\",\"name\":\"nfqqnvwp\"}").toObject(ImpactedRegion.class);
        Assertions.assertEquals("ftpvjzbexil", model.id());
        Assertions.assertEquals("nfqqnvwp", model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ImpactedRegion model = new ImpactedRegion().withId("ftpvjzbexil").withName("nfqqnvwp");
        model = BinaryData.fromObject(model).toObject(ImpactedRegion.class);
        Assertions.assertEquals("ftpvjzbexil", model.id());
        Assertions.assertEquals("nfqqnvwp", model.name());
    }
}
