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

package com.azure.resourcemanager.logz.generated;

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

public final class VMResourcesInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VMResourcesInner model =
            BinaryData
                .fromString("{\"id\":\"bdlwtgrhpdjpj\",\"agentVersion\":\"asxazjpqyegualhb\"}")
                .toObject(VMResourcesInner.class);
        Assertions.assertEquals("bdlwtgrhpdjpj", model.id());
        Assertions.assertEquals("asxazjpqyegualhb", model.agentVersion());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VMResourcesInner model = new VMResourcesInner().withId("bdlwtgrhpdjpj").withAgentVersion("asxazjpqyegualhb");
        model = BinaryData.fromObject(model).toObject(VMResourcesInner.class);
        Assertions.assertEquals("bdlwtgrhpdjpj", model.id());
        Assertions.assertEquals("asxazjpqyegualhb", model.agentVersion());
    }
}
