// 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.MsixPackageApplications;
import org.junit.jupiter.api.Assertions;

public final class MsixPackageApplicationsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MsixPackageApplications model =
            BinaryData
                .fromString(
                    "{\"appId\":\"yylhalnswhccsp\",\"description\":\"aivwitqscywu\",\"appUserModelID\":\"woluhczbwemhair\",\"friendlyName\":\"rgzdwmsweyp\",\"iconImageName\":\"dxggicccnxqhuexm\"}")
                .toObject(MsixPackageApplications.class);
        Assertions.assertEquals("yylhalnswhccsp", model.appId());
        Assertions.assertEquals("aivwitqscywu", model.description());
        Assertions.assertEquals("woluhczbwemhair", model.appUserModelId());
        Assertions.assertEquals("rgzdwmsweyp", model.friendlyName());
        Assertions.assertEquals("dxggicccnxqhuexm", model.iconImageName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MsixPackageApplications model =
            new MsixPackageApplications()
                .withAppId("yylhalnswhccsp")
                .withDescription("aivwitqscywu")
                .withAppUserModelId("woluhczbwemhair")
                .withFriendlyName("rgzdwmsweyp")
                .withIconImageName("dxggicccnxqhuexm");
        model = BinaryData.fromObject(model).toObject(MsixPackageApplications.class);
        Assertions.assertEquals("yylhalnswhccsp", model.appId());
        Assertions.assertEquals("aivwitqscywu", model.description());
        Assertions.assertEquals("woluhczbwemhair", model.appUserModelId());
        Assertions.assertEquals("rgzdwmsweyp", model.friendlyName());
        Assertions.assertEquals("dxggicccnxqhuexm", model.iconImageName());
    }
}
