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

package com.azure.resourcemanager.appcomplianceautomation.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcomplianceautomation.fluent.models.SnapshotResourceInner;
import org.junit.jupiter.api.Test;

public final class SnapshotResourceInnerTests {
    @Test
    public void testDeserialize() {
        SnapshotResourceInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"id\":\"z\",\"snapshotName\":\"epgzgqexz\",\"createdAt\":\"2021-05-08T18:49:34Z\",\"provisioningState\":\"Updating\",\"reportProperties\":{\"id\":\"aierhhb\",\"status\":\"Failed\",\"tenantId\":\"ummajtjaod\",\"reportName\":\"bnbdxkqpxokajion\",\"offerGuid\":\"mexgstxgcp\",\"timeZone\":\"dg\",\"triggerTime\":\"2020-12-20T13:07:36Z\",\"nextTriggerTime\":\"2021-08-14T01:03:38Z\",\"lastTriggerTime\":\"2021-03-19T19:19:25Z\",\"subscriptions\":[\"jwzrl\",\"vmclw\"],\"resources\":[],\"provisioningState\":\"Canceled\"},\"complianceResults\":[{\"complianceName\":\"bzaqsqsycbkbfk\",\"categories\":[]},{\"complianceName\":\"dkexxppofm\",\"categories\":[]}]},\"id\":\"c\",\"name\":\"jpgd\",\"type\":\"toc\"}")
                .toObject(SnapshotResourceInner.class);
    }

    @Test
    public void testSerialize() {
        SnapshotResourceInner model = new SnapshotResourceInner();
        model = BinaryData.fromObject(model).toObject(SnapshotResourceInner.class);
    }
}
