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

public final class MsixPackagePatchPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MsixPackagePatchProperties model =
            BinaryData
                .fromString("{\"isActive\":false,\"isRegularRegistration\":true,\"displayName\":\"pelol\"}")
                .toObject(MsixPackagePatchProperties.class);
        Assertions.assertEquals(false, model.isActive());
        Assertions.assertEquals(true, model.isRegularRegistration());
        Assertions.assertEquals("pelol", model.displayName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MsixPackagePatchProperties model =
            new MsixPackagePatchProperties()
                .withIsActive(false)
                .withIsRegularRegistration(true)
                .withDisplayName("pelol");
        model = BinaryData.fromObject(model).toObject(MsixPackagePatchProperties.class);
        Assertions.assertEquals(false, model.isActive());
        Assertions.assertEquals(true, model.isRegularRegistration());
        Assertions.assertEquals("pelol", model.displayName());
    }
}
