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

package com.azure.resourcemanager.networkfunction.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.networkfunction.models.DestinationType;
import com.azure.resourcemanager.networkfunction.models.EmissionPolicyDestination;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class EmissionPolicyDestinationTests {
    @Test
    public void testDeserialize() {
        EmissionPolicyDestination model =
            BinaryData.fromString("{\"destinationType\":\"AzureMonitor\"}").toObject(EmissionPolicyDestination.class);
        Assertions.assertEquals(DestinationType.AZURE_MONITOR, model.destinationType());
    }

    @Test
    public void testSerialize() {
        EmissionPolicyDestination model =
            new EmissionPolicyDestination().withDestinationType(DestinationType.AZURE_MONITOR);
        model = BinaryData.fromObject(model).toObject(EmissionPolicyDestination.class);
        Assertions.assertEquals(DestinationType.AZURE_MONITOR, model.destinationType());
    }
}
