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

package com.azure.resourcemanager.reservations.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.reservations.models.SkuProperty;
import org.junit.jupiter.api.Assertions;

public final class SkuPropertyTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SkuProperty model =
            BinaryData.fromString("{\"name\":\"zyde\",\"value\":\"jwyahuxinpmqnja\"}").toObject(SkuProperty.class);
        Assertions.assertEquals("zyde", model.name());
        Assertions.assertEquals("jwyahuxinpmqnja", model.value());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SkuProperty model = new SkuProperty().withName("zyde").withValue("jwyahuxinpmqnja");
        model = BinaryData.fromObject(model).toObject(SkuProperty.class);
        Assertions.assertEquals("zyde", model.name());
        Assertions.assertEquals("jwyahuxinpmqnja", model.value());
    }
}
