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

public final class ServerVulnerabilityPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServerVulnerabilityProperties model =
            BinaryData
                .fromString(
                    "{\"assessedResourceType\":\"ServerVulnerabilityAssessment\",\"type\":\"q\",\"cvss\":{\"rgmqso\":{\"base\":67.92354},\"ekxgn\":{\"base\":47.863705},\"mxcpwzvmdoks\":{\"base\":9.420771}},\"patchable\":true,\"cve\":[{\"title\":\"wxlboncqbazqicq\",\"link\":\"ygtvxbyjanepub\"},{\"title\":\"kxyqvgxiaodetv\",\"link\":\"kxdxuwsaifmcwn\"},{\"title\":\"bzlehgc\",\"link\":\"bcknjolgj\"},{\"title\":\"xpvelszerqzevxo\",\"link\":\"intxwa\"}],\"threat\":\"glzoblqwa\",\"publishedTime\":\"2021-06-14T23:06:53Z\",\"vendorReferences\":[{\"title\":\"hmzyqbhdvafjrqpj\",\"link\":\"r\"},{\"title\":\"crgaxwmzwdf\",\"link\":\"nrzorpd\"}]}")
                .toObject(ServerVulnerabilityProperties.class);
    }

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