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

package com.azure.resourcemanager.databox.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databox.models.CreateJobValidations;
import com.azure.resourcemanager.databox.models.ValidationInputRequest;
import java.util.Arrays;

public final class CreateJobValidationsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CreateJobValidations model =
            BinaryData
                .fromString(
                    "{\"validationCategory\":\"JobCreationValidation\",\"individualRequestDetails\":[{\"validationType\":\"ValidationInputRequest\"},{\"validationType\":\"ValidationInputRequest\"},{\"validationType\":\"ValidationInputRequest\"}]}")
                .toObject(CreateJobValidations.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CreateJobValidations model =
            new CreateJobValidations()
                .withIndividualRequestDetails(
                    Arrays
                        .asList(
                            new ValidationInputRequest(), new ValidationInputRequest(), new ValidationInputRequest()));
        model = BinaryData.fromObject(model).toObject(CreateJobValidations.class);
    }
}
