// 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.SecureScoreControlDefinitionItemInner;
import com.azure.resourcemanager.security.fluent.models.SecureScoreControlDetailsInner;

public final class SecureScoreControlDetailsInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SecureScoreControlDetailsInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"displayName\":\"yefchnm\",\"score\":{\"max\":1660290051,\"current\":18.26434123034213,\"percentage\":71.62987207064346},\"healthyResourceCount\":1375223336,\"unhealthyResourceCount\":1523309198,\"notApplicableResourceCount\":1600818034,\"weight\":4542043090812531924,\"definition\":{\"id\":\"fifhxwrsnew\",\"name\":\"ozqvbubqmam\",\"type\":\"sycxhxzgaz\"}},\"id\":\"taboidvmf\",\"name\":\"hppubowsepdfgkmt\",\"type\":\"herngb\"}")
                .toObject(SecureScoreControlDetailsInner.class);
    }

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