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

package com.azure.resourcemanager.hybridnetwork.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridnetwork.models.VirtualHardDisk;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class VirtualHardDiskTests {
    @Test
    public void testDeserialize() {
        VirtualHardDisk model = BinaryData.fromString("{\"uri\":\"orxzdmohctbqvud\"}").toObject(VirtualHardDisk.class);
        Assertions.assertEquals("orxzdmohctbqvud", model.uri());
    }

    @Test
    public void testSerialize() {
        VirtualHardDisk model = new VirtualHardDisk().withUri("orxzdmohctbqvud");
        model = BinaryData.fromObject(model).toObject(VirtualHardDisk.class);
        Assertions.assertEquals("orxzdmohctbqvud", model.uri());
    }
}
