// 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.fluent.models.DataMigrationServiceStatusResponseInner;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class DataMigrationServiceStatusResponseInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DataMigrationServiceStatusResponseInner model =
            BinaryData
                .fromString(
                    "{\"agentVersion\":\"jzzd\",\"status\":\"qxhocdgeablgphut\",\"vmSize\":\"ndv\",\"supportedTaskTypes\":[\"zwyiftyhxhur\",\"k\",\"tyxolniwpwc\",\"kjfkg\"]}")
                .toObject(DataMigrationServiceStatusResponseInner.class);
        Assertions.assertEquals("jzzd", model.agentVersion());
        Assertions.assertEquals("qxhocdgeablgphut", model.status());
        Assertions.assertEquals("ndv", model.vmSize());
        Assertions.assertEquals("zwyiftyhxhur", model.supportedTaskTypes().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DataMigrationServiceStatusResponseInner model =
            new DataMigrationServiceStatusResponseInner()
                .withAgentVersion("jzzd")
                .withStatus("qxhocdgeablgphut")
                .withVmSize("ndv")
                .withSupportedTaskTypes(Arrays.asList("zwyiftyhxhur", "k", "tyxolniwpwc", "kjfkg"));
        model = BinaryData.fromObject(model).toObject(DataMigrationServiceStatusResponseInner.class);
        Assertions.assertEquals("jzzd", model.agentVersion());
        Assertions.assertEquals("qxhocdgeablgphut", model.status());
        Assertions.assertEquals("ndv", model.vmSize());
        Assertions.assertEquals("zwyiftyhxhur", model.supportedTaskTypes().get(0));
    }
}
