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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerProperties;

public final class WorkflowTriggerPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkflowTriggerProperties model =
            BinaryData
                .fromString(
                    "{\"provisioningState\":\"Moving\",\"createdTime\":\"2021-03-22T00:42:17Z\",\"changedTime\":\"2021-05-26T08:28:18Z\",\"state\":\"Completed\",\"status\":\"TimedOut\",\"lastExecutionTime\":\"2021-02-15T23:58:49Z\",\"nextExecutionTime\":\"2021-10-21T07:58:39Z\",\"recurrence\":{\"frequency\":\"Hour\",\"interval\":215474399,\"startTime\":\"hmpvecx\",\"endTime\":\"debfqkkrbmpukgri\",\"timeZone\":\"lzlfbxzpuz\",\"schedule\":{\"minutes\":[650318692,1593715454,315992042],\"hours\":[64383308,1202809910],\"weekDays\":[\"Sunday\",\"Sunday\",\"Friday\",\"Wednesday\"],\"monthDays\":[1035885378,380689806],\"monthlyOccurrences\":[]}},\"workflow\":{\"id\":\"qkpikadrgvtqagnb\",\"name\":\"nhijggmebfsi\",\"type\":\"butr\"}}")
                .toObject(WorkflowTriggerProperties.class);
    }

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