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

package com.azure.resourcemanager.policyinsights.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.policyinsights.models.AttestationEvidence;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class AttestationEvidenceTests {
    @Test
    public void testDeserialize() {
        AttestationEvidence model =
            BinaryData
                .fromString("{\"description\":\"sjabibs\",\"sourceUri\":\"tawfsdjpvkvp\"}")
                .toObject(AttestationEvidence.class);
        Assertions.assertEquals("sjabibs", model.description());
        Assertions.assertEquals("tawfsdjpvkvp", model.sourceUri());
    }

    @Test
    public void testSerialize() {
        AttestationEvidence model = new AttestationEvidence().withDescription("sjabibs").withSourceUri("tawfsdjpvkvp");
        model = BinaryData.fromObject(model).toObject(AttestationEvidence.class);
        Assertions.assertEquals("sjabibs", model.description());
        Assertions.assertEquals("tawfsdjpvkvp", model.sourceUri());
    }
}
