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

public final class MsixPackagePatchTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MsixPackagePatch model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"isActive\":false,\"isRegularRegistration\":true,\"displayName\":\"ywemhzrn\"},\"id\":\"sdtclusiypbs\",\"name\":\"gytguslfead\",\"type\":\"ygqukyhejh\"}")
                .toObject(MsixPackagePatch.class);
        Assertions.assertEquals(false, model.isActive());
        Assertions.assertEquals(true, model.isRegularRegistration());
        Assertions.assertEquals("ywemhzrn", model.displayName());
    }

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