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

package com.azure.resourcemanager.newrelicobservability.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.newrelicobservability.fluent.models.VMInfoInner;
import org.junit.jupiter.api.Assertions;

public final class VMInfoInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VMInfoInner model =
            BinaryData
                .fromString("{\"vmId\":\"fu\",\"agentVersion\":\"aodsfcpkv\",\"agentStatus\":\"dpuozmyz\"}")
                .toObject(VMInfoInner.class);
        Assertions.assertEquals("fu", model.vmId());
        Assertions.assertEquals("aodsfcpkv", model.agentVersion());
        Assertions.assertEquals("dpuozmyz", model.agentStatus());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VMInfoInner model = new VMInfoInner().withVmId("fu").withAgentVersion("aodsfcpkv").withAgentStatus("dpuozmyz");
        model = BinaryData.fromObject(model).toObject(VMInfoInner.class);
        Assertions.assertEquals("fu", model.vmId());
        Assertions.assertEquals("aodsfcpkv", model.agentVersion());
        Assertions.assertEquals("dpuozmyz", model.agentStatus());
    }
}
