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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.models.LoginMode;
import com.azure.resourcemanager.batch.models.WindowsUserConfiguration;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class WindowsUserConfigurationTests {
    @Test
    public void testDeserialize() {
        WindowsUserConfiguration model =
            BinaryData.fromString("{\"loginMode\":\"Batch\"}").toObject(WindowsUserConfiguration.class);
        Assertions.assertEquals(LoginMode.BATCH, model.loginMode());
    }

    @Test
    public void testSerialize() {
        WindowsUserConfiguration model = new WindowsUserConfiguration().withLoginMode(LoginMode.BATCH);
        model = BinaryData.fromObject(model).toObject(WindowsUserConfiguration.class);
        Assertions.assertEquals(LoginMode.BATCH, model.loginMode());
    }
}
