// 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.fluent.models.DeploymentLicenseResponseInner;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class DeploymentLicenseResponseInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DeploymentLicenseResponseInner model =
            BinaryData
                .fromString("{\"temporaryLicenseChain\":[\"xvd\"],\"signature\":\"jgrtfwvukxga\"}")
                .toObject(DeploymentLicenseResponseInner.class);
        Assertions.assertEquals("xvd", model.temporaryLicenseChain().get(0));
        Assertions.assertEquals("jgrtfwvukxga", model.signature());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DeploymentLicenseResponseInner model =
            new DeploymentLicenseResponseInner()
                .withTemporaryLicenseChain(Arrays.asList("xvd"))
                .withSignature("jgrtfwvukxga");
        model = BinaryData.fromObject(model).toObject(DeploymentLicenseResponseInner.class);
        Assertions.assertEquals("xvd", model.temporaryLicenseChain().get(0));
        Assertions.assertEquals("jgrtfwvukxga", model.signature());
    }
}
