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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.models.ScriptExecutionsList;

public final class ScriptExecutionsListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ScriptExecutionsList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"drhneuyow\",\"parameters\":[],\"hiddenParameters\":[],\"failureReason\":\"ytisibir\",\"timeout\":\"gpikpzimejza\",\"retention\":\"fzxiavrmb\",\"submittedAt\":\"2021-09-13T10:29:44Z\",\"startedAt\":\"2021-09-04T02:46:50Z\",\"finishedAt\":\"2021-09-27T16:09:30Z\",\"provisioningState\":\"Pending\",\"output\":[],\"namedOutputs\":{},\"information\":[],\"warnings\":[],\"errors\":[]},\"id\":\"zpfrla\",\"name\":\"szrnwo\",\"type\":\"indfpwpjyl\"},{\"properties\":{\"scriptCmdletId\":\"lhflsjcdhszfjvf\",\"parameters\":[],\"hiddenParameters\":[],\"failureReason\":\"eljag\",\"timeout\":\"qmqhldvriii\",\"retention\":\"nalghfkvtvsexso\",\"submittedAt\":\"2021-01-09T15:20:12Z\",\"startedAt\":\"2021-01-28T09:30:25Z\",\"finishedAt\":\"2021-11-06T19:32:24Z\",\"provisioningState\":\"Failed\",\"output\":[],\"namedOutputs\":{},\"information\":[],\"warnings\":[],\"errors\":[]},\"id\":\"hmzk\",\"name\":\"pjgwwspug\",\"type\":\"ftqsxhqxujxuk\"},{\"properties\":{\"scriptCmdletId\":\"digrjguufzdmsyqt\",\"parameters\":[],\"hiddenParameters\":[],\"failureReason\":\"hbotzingamvppho\",\"timeout\":\"zqzudph\",\"retention\":\"mvdk\",\"submittedAt\":\"2021-09-19T23:00:24Z\",\"startedAt\":\"2021-08-12T04:12:29Z\",\"finishedAt\":\"2021-02-02T13:52:10Z\",\"provisioningState\":\"Succeeded\",\"output\":[],\"namedOutputs\":{},\"information\":[],\"warnings\":[],\"errors\":[]},\"id\":\"mtnvyq\",\"name\":\"atkzwpcnpw\",\"type\":\"cjaesgvvs\"}],\"nextLink\":\"yajguqfhwygzlv\"}")
                .toObject(ScriptExecutionsList.class);
    }

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