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

public final class AutoPausePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AutoPauseProperties model =
            BinaryData
                .fromString("{\"delayInMinutes\":1622856853,\"enabled\":false}")
                .toObject(AutoPauseProperties.class);
        Assertions.assertEquals(1622856853, model.delayInMinutes());
        Assertions.assertEquals(false, model.enabled());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AutoPauseProperties model = new AutoPauseProperties().withDelayInMinutes(1622856853).withEnabled(false);
        model = BinaryData.fromObject(model).toObject(AutoPauseProperties.class);
        Assertions.assertEquals(1622856853, model.delayInMinutes());
        Assertions.assertEquals(false, model.enabled());
    }
}
