// 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.SsisFolder;
import org.junit.jupiter.api.Assertions;

public final class SsisFolderTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SsisFolder model =
            BinaryData
                .fromString(
                    "{\"type\":\"Folder\",\"id\":9026085533674004933,\"name\":\"nl\",\"description\":\"mxcpwzvmdoks\"}")
                .toObject(SsisFolder.class);
        Assertions.assertEquals(9026085533674004933L, model.id());
        Assertions.assertEquals("nl", model.name());
        Assertions.assertEquals("mxcpwzvmdoks", model.description());
    }

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