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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.models.SsisObjectMetadata;
import org.junit.jupiter.api.Assertions;

public final class SsisObjectMetadataTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SsisObjectMetadata model =
            BinaryData
                .fromString(
                    "{\"type\":\"SsisObjectMetadata\",\"id\":1092833770450672714,\"name\":\"rusnk\",\"description\":\"hsyrqunj\"}")
                .toObject(SsisObjectMetadata.class);
        Assertions.assertEquals(1092833770450672714L, model.id());
        Assertions.assertEquals("rusnk", model.name());
        Assertions.assertEquals("hsyrqunj", model.description());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SsisObjectMetadata model =
            new SsisObjectMetadata().withId(1092833770450672714L).withName("rusnk").withDescription("hsyrqunj");
        model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class);
        Assertions.assertEquals(1092833770450672714L, model.id());
        Assertions.assertEquals("rusnk", model.name());
        Assertions.assertEquals("hsyrqunj", model.description());
    }
}
