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

package com.azure.resourcemanager.sphere.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.sphere.models.ProductUpdate;
import org.junit.jupiter.api.Assertions;

public final class ProductUpdateTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProductUpdate model =
            BinaryData.fromString("{\"properties\":{\"description\":\"by\"}}").toObject(ProductUpdate.class);
        Assertions.assertEquals("by", model.description());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ProductUpdate model = new ProductUpdate().withDescription("by");
        model = BinaryData.fromObject(model).toObject(ProductUpdate.class);
        Assertions.assertEquals("by", model.description());
    }
}
