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

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.fluent.models.ComplianceProperties;

public final class CompliancePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ComplianceProperties model =
            BinaryData
                .fromString(
                    "{\"assessmentTimestampUtcDate\":\"2021-11-22T21:44:45Z\",\"resourceCount\":2043686923,\"assessmentResult\":[{\"segmentType\":\"xje\",\"percentage\":84.10933716066732},{\"segmentType\":\"wxuqlcvydypatdoo\",\"percentage\":48.53263087805991},{\"segmentType\":\"iodkooebwnujhem\",\"percentage\":70.84255746706634}]}")
                .toObject(ComplianceProperties.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ComplianceProperties model = new ComplianceProperties();
        model = BinaryData.fromObject(model).toObject(ComplianceProperties.class);
    }
}
