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

package com.azure.resourcemanager.desktopvirtualization.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
import org.junit.jupiter.api.Assertions;

public final class MsixPackageDependenciesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MsixPackageDependencies model =
            BinaryData
                .fromString("{\"dependencyName\":\"zqhof\",\"publisher\":\"maequiahxicslfa\",\"minVersion\":\"z\"}")
                .toObject(MsixPackageDependencies.class);
        Assertions.assertEquals("zqhof", model.dependencyName());
        Assertions.assertEquals("maequiahxicslfa", model.publisher());
        Assertions.assertEquals("z", model.minVersion());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MsixPackageDependencies model =
            new MsixPackageDependencies()
                .withDependencyName("zqhof")
                .withPublisher("maequiahxicslfa")
                .withMinVersion("z");
        model = BinaryData.fromObject(model).toObject(MsixPackageDependencies.class);
        Assertions.assertEquals("zqhof", model.dependencyName());
        Assertions.assertEquals("maequiahxicslfa", model.publisher());
        Assertions.assertEquals("z", model.minVersion());
    }
}
