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

package com.azure.resourcemanager.recoveryservicesbackup.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.recoveryservicesbackup.models.DiskInformation;
import org.junit.jupiter.api.Assertions;

public final class DiskInformationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DiskInformation model =
            BinaryData.fromString("{\"lun\":695098311,\"name\":\"pjwogqqno\"}").toObject(DiskInformation.class);
        Assertions.assertEquals(695098311, model.lun());
        Assertions.assertEquals("pjwogqqno", model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DiskInformation model = new DiskInformation().withLun(695098311).withName("pjwogqqno");
        model = BinaryData.fromObject(model).toObject(DiskInformation.class);
        Assertions.assertEquals(695098311, model.lun());
        Assertions.assertEquals("pjwogqqno", model.name());
    }
}
