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

package com.azure.resourcemanager.newrelicobservability.generated;

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

public final class AppServicesGetRequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AppServicesGetRequest model =
            BinaryData
                .fromString("{\"azureResourceIds\":[\"dudgwdslfhot\"],\"userEmail\":\"mcy\"}")
                .toObject(AppServicesGetRequest.class);
        Assertions.assertEquals("dudgwdslfhot", model.azureResourceIds().get(0));
        Assertions.assertEquals("mcy", model.userEmail());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AppServicesGetRequest model =
            new AppServicesGetRequest().withAzureResourceIds(Arrays.asList("dudgwdslfhot")).withUserEmail("mcy");
        model = BinaryData.fromObject(model).toObject(AppServicesGetRequest.class);
        Assertions.assertEquals("dudgwdslfhot", model.azureResourceIds().get(0));
        Assertions.assertEquals("mcy", model.userEmail());
    }
}
