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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.models.OpenAuthenticationPolicyClaim;
import org.junit.jupiter.api.Assertions;

public final class OpenAuthenticationPolicyClaimTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OpenAuthenticationPolicyClaim model =
            BinaryData
                .fromString("{\"name\":\"ovmclwhijcoejct\",\"value\":\"aqsqsycbkbfk\"}")
                .toObject(OpenAuthenticationPolicyClaim.class);
        Assertions.assertEquals("ovmclwhijcoejct", model.name());
        Assertions.assertEquals("aqsqsycbkbfk", model.value());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        OpenAuthenticationPolicyClaim model =
            new OpenAuthenticationPolicyClaim().withName("ovmclwhijcoejct").withValue("aqsqsycbkbfk");
        model = BinaryData.fromObject(model).toObject(OpenAuthenticationPolicyClaim.class);
        Assertions.assertEquals("ovmclwhijcoejct", model.name());
        Assertions.assertEquals("aqsqsycbkbfk", model.value());
    }
}
