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

package com.azure.resourcemanager.workloads.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.workloads.models.DiskSku;
import com.azure.resourcemanager.workloads.models.DiskSkuName;
import org.junit.jupiter.api.Assertions;

public final class DiskSkuTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DiskSku model = BinaryData.fromString("{\"name\":\"Premium_LRS\"}").toObject(DiskSku.class);
        Assertions.assertEquals(DiskSkuName.PREMIUM_LRS, model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DiskSku model = new DiskSku().withName(DiskSkuName.PREMIUM_LRS);
        model = BinaryData.fromObject(model).toObject(DiskSku.class);
        Assertions.assertEquals(DiskSkuName.PREMIUM_LRS, model.name());
    }
}
