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

public final class LibraryRequirementsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LibraryRequirements model =
            BinaryData
                .fromString(
                    "{\"time\":\"2021-02-12T17:13:55Z\",\"content\":\"kfkbgbzbowxeqocl\",\"filename\":\"ygvkzqkjj\"}")
                .toObject(LibraryRequirements.class);
        Assertions.assertEquals("kfkbgbzbowxeqocl", model.content());
        Assertions.assertEquals("ygvkzqkjj", model.filename());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LibraryRequirements model = new LibraryRequirements().withContent("kfkbgbzbowxeqocl").withFilename("ygvkzqkjj");
        model = BinaryData.fromObject(model).toObject(LibraryRequirements.class);
        Assertions.assertEquals("kfkbgbzbowxeqocl", model.content());
        Assertions.assertEquals("ygvkzqkjj", model.filename());
    }
}
