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

package com.azure.resourcemanager.deploymentmanager.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.deploymentmanager.models.RolloutPropertiesAutoGenerated;

public final class RolloutPropertiesAutoGeneratedTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RolloutPropertiesAutoGenerated model =
            BinaryData
                .fromString(
                    "{\"status\":\"ctbzaq\",\"totalRetryAttempts\":2038129581,\"operationInfo\":{\"retryAttempt\":934868772,\"skipSucceededOnRetry\":true,\"startTime\":\"2021-06-12T21:56:45Z\",\"endTime\":\"2021-12-04T12:50:24Z\"},\"services\":[{\"name\":\"xxppofm\",\"serviceUnits\":[],\"targetLocation\":\"c\",\"targetSubscriptionId\":\"jpgd\"},{\"name\":\"ocjjxhvpmouexh\",\"serviceUnits\":[],\"targetLocation\":\"i\",\"targetSubscriptionId\":\"qeojnxqbzvddntw\"}]}")
                .toObject(RolloutPropertiesAutoGenerated.class);
    }

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