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

package com.azure.resourcemanager.azurestack.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.azurestack.models.ProductLink;
import org.junit.jupiter.api.Assertions;

public final class ProductLinkTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProductLink model =
            BinaryData
                .fromString("{\"displayName\":\"ochcbonqvpkvl\",\"uri\":\"njeaseipheofloke\"}")
                .toObject(ProductLink.class);
        Assertions.assertEquals("ochcbonqvpkvl", model.displayName());
        Assertions.assertEquals("njeaseipheofloke", model.uri());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ProductLink model = new ProductLink().withDisplayName("ochcbonqvpkvl").withUri("njeaseipheofloke");
        model = BinaryData.fromObject(model).toObject(ProductLink.class);
        Assertions.assertEquals("ochcbonqvpkvl", model.displayName());
        Assertions.assertEquals("njeaseipheofloke", model.uri());
    }
}
