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

package com.azure.resourcemanager.confidentialledger.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.confidentialledger.models.DeploymentType;
import com.azure.resourcemanager.confidentialledger.models.LanguageRuntime;
import org.junit.jupiter.api.Assertions;

public final class DeploymentTypeTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DeploymentType model =
            BinaryData
                .fromString("{\"languageRuntime\":\"JS\",\"appSourceUri\":\"hmuouqfprwzwbn\"}")
                .toObject(DeploymentType.class);
        Assertions.assertEquals(LanguageRuntime.JS, model.languageRuntime());
        Assertions.assertEquals("hmuouqfprwzwbn", model.appSourceUri());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DeploymentType model =
            new DeploymentType().withLanguageRuntime(LanguageRuntime.JS).withAppSourceUri("hmuouqfprwzwbn");
        model = BinaryData.fromObject(model).toObject(DeploymentType.class);
        Assertions.assertEquals(LanguageRuntime.JS, model.languageRuntime());
        Assertions.assertEquals("hmuouqfprwzwbn", model.appSourceUri());
    }
}
