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

package com.azure.resourcemanager.dataprotection.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class UnlockDeleteRequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UnlockDeleteRequest model =
            BinaryData
                .fromString("{\"resourceGuardOperationRequests\":[\"itc\"],\"resourceToBeDeleted\":\"fcktqumiekke\"}")
                .toObject(UnlockDeleteRequest.class);
        Assertions.assertEquals("itc", model.resourceGuardOperationRequests().get(0));
        Assertions.assertEquals("fcktqumiekke", model.resourceToBeDeleted());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        UnlockDeleteRequest model =
            new UnlockDeleteRequest()
                .withResourceGuardOperationRequests(Arrays.asList("itc"))
                .withResourceToBeDeleted("fcktqumiekke");
        model = BinaryData.fromObject(model).toObject(UnlockDeleteRequest.class);
        Assertions.assertEquals("itc", model.resourceGuardOperationRequests().get(0));
        Assertions.assertEquals("fcktqumiekke", model.resourceToBeDeleted());
    }
}
