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

package com.azure.resourcemanager.databox.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databox.models.DiskScheduleAvailabilityRequest;
import org.junit.jupiter.api.Assertions;

public final class DiskScheduleAvailabilityRequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DiskScheduleAvailabilityRequest model =
            BinaryData
                .fromString(
                    "{\"skuName\":\"DataBoxDisk\",\"expectedDataSizeInTeraBytes\":1305337055,\"storageLocation\":\"xbjhwuaanozjosph\",\"country\":\"ulpjr\"}")
                .toObject(DiskScheduleAvailabilityRequest.class);
        Assertions.assertEquals("xbjhwuaanozjosph", model.storageLocation());
        Assertions.assertEquals("ulpjr", model.country());
        Assertions.assertEquals(1305337055, model.expectedDataSizeInTeraBytes());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DiskScheduleAvailabilityRequest model =
            new DiskScheduleAvailabilityRequest()
                .withStorageLocation("xbjhwuaanozjosph")
                .withCountry("ulpjr")
                .withExpectedDataSizeInTeraBytes(1305337055);
        model = BinaryData.fromObject(model).toObject(DiskScheduleAvailabilityRequest.class);
        Assertions.assertEquals("xbjhwuaanozjosph", model.storageLocation());
        Assertions.assertEquals("ulpjr", model.country());
        Assertions.assertEquals(1305337055, model.expectedDataSizeInTeraBytes());
    }
}
