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

package com.azure.resourcemanager.machinelearning.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceVersion;
import org.junit.jupiter.api.Assertions;

public final class ComputeInstanceVersionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ComputeInstanceVersion model =
            BinaryData.fromString("{\"runtime\":\"z\"}").toObject(ComputeInstanceVersion.class);
        Assertions.assertEquals("z", model.runtime());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ComputeInstanceVersion model = new ComputeInstanceVersion().withRuntime("z");
        model = BinaryData.fromObject(model).toObject(ComputeInstanceVersion.class);
        Assertions.assertEquals("z", model.runtime());
    }
}
