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

public final class StartMenuItemPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StartMenuItemProperties model =
            BinaryData
                .fromString(
                    "{\"appAlias\":\"crgvxpvgom\",\"filePath\":\"fmisg\",\"commandLineArguments\":\"nbbelda\",\"iconPath\":\"zbaliourqha\",\"iconIndex\":30531984}")
                .toObject(StartMenuItemProperties.class);
        Assertions.assertEquals("crgvxpvgom", model.appAlias());
        Assertions.assertEquals("fmisg", model.filePath());
        Assertions.assertEquals("nbbelda", model.commandLineArguments());
        Assertions.assertEquals("zbaliourqha", model.iconPath());
        Assertions.assertEquals(30531984, model.iconIndex());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        StartMenuItemProperties model =
            new StartMenuItemProperties()
                .withAppAlias("crgvxpvgom")
                .withFilePath("fmisg")
                .withCommandLineArguments("nbbelda")
                .withIconPath("zbaliourqha")
                .withIconIndex(30531984);
        model = BinaryData.fromObject(model).toObject(StartMenuItemProperties.class);
        Assertions.assertEquals("crgvxpvgom", model.appAlias());
        Assertions.assertEquals("fmisg", model.filePath());
        Assertions.assertEquals("nbbelda", model.commandLineArguments());
        Assertions.assertEquals("zbaliourqha", model.iconPath());
        Assertions.assertEquals(30531984, model.iconIndex());
    }
}
