// 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.models.ContainerRegistryVulnerabilityProperties;

public final class ContainerRegistryVulnerabilityPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ContainerRegistryVulnerabilityProperties model =
            BinaryData
                .fromString(
                    "{\"assessedResourceType\":\"ContainerRegistryVulnerability\",\"type\":\"x\",\"cvss\":{\"pcpahprzrvxhmtf\":{\"base\":17.635876},\"nxzcm\":{\"base\":39.96614},\"gxnoqrxtdis\":{\"base\":25.372917}},\"patchable\":true,\"cve\":[{\"title\":\"lmydidwhep\",\"link\":\"wtj\"},{\"title\":\"o\",\"link\":\"xxhmwcdbc\"},{\"title\":\"oikxkxhnegk\",\"link\":\"z\"}],\"publishedTime\":\"2021-11-05T00:07:59Z\",\"vendorReferences\":[{\"title\":\"plvukaobrlbpg\",\"link\":\"bagn\"}],\"repositoryName\":\"jhgem\",\"imageDigest\":\"wakywalhjymxcgq\"}")
                .toObject(ContainerRegistryVulnerabilityProperties.class);
    }

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