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

package com.azure.resourcemanager.communication.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.communication.models.VerificationParameter;
import com.azure.resourcemanager.communication.models.VerificationType;
import org.junit.jupiter.api.Assertions;

public final class VerificationParameterTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VerificationParameter model =
            BinaryData.fromString("{\"verificationType\":\"SPF\"}").toObject(VerificationParameter.class);
        Assertions.assertEquals(VerificationType.SPF, model.verificationType());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VerificationParameter model = new VerificationParameter().withVerificationType(VerificationType.SPF);
        model = BinaryData.fromObject(model).toObject(VerificationParameter.class);
        Assertions.assertEquals(VerificationType.SPF, model.verificationType());
    }
}
