// 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.ComplianceInner;

public final class ComplianceInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ComplianceInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"assessmentTimestampUtcDate\":\"2021-08-15T01:34:53Z\",\"resourceCount\":207967373,\"assessmentResult\":[{\"segmentType\":\"dpfrxtrthzvaytdw\",\"percentage\":34.16180582030333},{\"segmentType\":\"ubpaxhe\",\"percentage\":1.5196984611925868}]},\"id\":\"ivpdtiir\",\"name\":\"tdqoaxoruzfgsq\",\"type\":\"yfxrx\"}")
                .toObject(ComplianceInner.class);
    }

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