// 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.WaitStepAttributes;
import com.azure.resourcemanager.deploymentmanager.models.WaitStepProperties;
import org.junit.jupiter.api.Assertions;

public final class WaitStepPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WaitStepProperties model =
            BinaryData
                .fromString("{\"stepType\":\"Wait\",\"attributes\":{\"duration\":\"sncghkjeszz\"}}")
                .toObject(WaitStepProperties.class);
        Assertions.assertEquals("sncghkjeszz", model.attributes().duration());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WaitStepProperties model =
            new WaitStepProperties().withAttributes(new WaitStepAttributes().withDuration("sncghkjeszz"));
        model = BinaryData.fromObject(model).toObject(WaitStepProperties.class);
        Assertions.assertEquals("sncghkjeszz", model.attributes().duration());
    }
}
