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

package com.azure.resourcemanager.storagemover.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagemover.fluent.models.StorageMoverProperties;
import org.junit.jupiter.api.Assertions;

public final class StorageMoverPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StorageMoverProperties model =
            BinaryData
                .fromString("{\"description\":\"fziton\",\"provisioningState\":\"Succeeded\"}")
                .toObject(StorageMoverProperties.class);
        Assertions.assertEquals("fziton", model.description());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        StorageMoverProperties model = new StorageMoverProperties().withDescription("fziton");
        model = BinaryData.fromObject(model).toObject(StorageMoverProperties.class);
        Assertions.assertEquals("fziton", model.description());
    }
}
