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

public final class MetadataSyncConfigInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MetadataSyncConfigInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":96984034},\"id\":\"sw\",\"name\":\"rtjriplrbpbew\",\"type\":\"ghfg\"}")
                .toObject(MetadataSyncConfigInner.class);
        Assertions.assertEquals(true, model.enabled());
        Assertions.assertEquals(96984034, model.syncIntervalInMinutes());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MetadataSyncConfigInner model =
            new MetadataSyncConfigInner().withEnabled(true).withSyncIntervalInMinutes(96984034);
        model = BinaryData.fromObject(model).toObject(MetadataSyncConfigInner.class);
        Assertions.assertEquals(true, model.enabled());
        Assertions.assertEquals(96984034, model.syncIntervalInMinutes());
    }
}
