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

package com.azure.resourcemanager.storagemover.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagemover.models.JobDefinitionList;

public final class JobDefinitionListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        JobDefinitionList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"description\":\"fkgukdkexxppof\",\"copyMode\":\"Mirror\",\"sourceName\":\"axcfjpgddtocjjx\",\"sourceResourceId\":\"pmouexhdz\",\"sourceSubpath\":\"bqe\",\"targetName\":\"jnxqbzvddntwn\",\"targetResourceId\":\"icbtwnpzao\",\"targetSubpath\":\"uhrhcffcyddgl\",\"latestJobRunName\":\"t\",\"latestJobRunResourceId\":\"qkwpyeicxmqc\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"hkh\",\"agentResourceId\":\"uigdtopbobjog\",\"provisioningState\":\"Succeeded\"},\"id\":\"u\",\"name\":\"m\",\"type\":\"uhrzayvvt\"},{\"properties\":{\"description\":\"vdfgiotk\",\"copyMode\":\"Mirror\",\"sourceName\":\"utqxlngx\",\"sourceResourceId\":\"fgugnxkrxdqmid\",\"sourceSubpath\":\"hzrvqd\",\"targetName\":\"abhjybi\",\"targetResourceId\":\"h\",\"targetSubpath\":\"fbowskanyk\",\"latestJobRunName\":\"lcuiywgqywgndr\",\"latestJobRunResourceId\":\"nhzgpphrcgyn\",\"latestJobRunStatus\":\"Failed\",\"agentName\":\"ecfvmm\",\"agentResourceId\":\"ofsx\",\"provisioningState\":\"Succeeded\"},\"id\":\"gbmqjqabcypmiv\",\"name\":\"w\",\"type\":\"zuvccfwnfnbacfio\"}],\"nextLink\":\"ebxetqgtzxdp\"}")
                .toObject(JobDefinitionList.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        JobDefinitionList model = new JobDefinitionList();
        model = BinaryData.fromObject(model).toObject(JobDefinitionList.class);
    }
}
