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

package com.azure.resourcemanager.recoveryservicesbackup.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.recoveryservicesbackup.models.Settings;
import org.junit.jupiter.api.Assertions;

public final class SettingsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Settings model =
            BinaryData
                .fromString("{\"timeZone\":\"vleo\",\"issqlcompression\":false,\"isCompression\":true}")
                .toObject(Settings.class);
        Assertions.assertEquals("vleo", model.timeZone());
        Assertions.assertEquals(false, model.issqlcompression());
        Assertions.assertEquals(true, model.isCompression());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Settings model = new Settings().withTimeZone("vleo").withIssqlcompression(false).withIsCompression(true);
        model = BinaryData.fromObject(model).toObject(Settings.class);
        Assertions.assertEquals("vleo", model.timeZone());
        Assertions.assertEquals(false, model.issqlcompression());
        Assertions.assertEquals(true, model.isCompression());
    }
}
