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

package com.azure.resourcemanager.hanaonazure.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hanaonazure.models.Disk;
import org.junit.jupiter.api.Assertions;

public final class DiskTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Disk model =
            BinaryData
                .fromString("{\"name\":\"htqqrolfp\",\"diskSizeGB\":68812306,\"lun\":2108030600}")
                .toObject(Disk.class);
        Assertions.assertEquals("htqqrolfp", model.name());
        Assertions.assertEquals(68812306, model.diskSizeGB());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Disk model = new Disk().withName("htqqrolfp").withDiskSizeGB(68812306);
        model = BinaryData.fromObject(model).toObject(Disk.class);
        Assertions.assertEquals("htqqrolfp", model.name());
        Assertions.assertEquals(68812306, model.diskSizeGB());
    }
}
