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

package com.azure.resourcemanager.datamigration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datamigration.models.ProjectTaskProperties;

public final class ProjectTaskPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProjectTaskProperties model =
            BinaryData
                .fromString(
                    "{\"taskType\":\"ProjectTaskProperties\",\"errors\":[],\"state\":\"Running\",\"commands\":[{\"commandType\":\"CommandProperties\",\"errors\":[],\"state\":\"Unknown\"},{\"commandType\":\"CommandProperties\",\"errors\":[],\"state\":\"Running\"},{\"commandType\":\"CommandProperties\",\"errors\":[],\"state\":\"Unknown\"}]}")
                .toObject(ProjectTaskProperties.class);
    }

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