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

package com.azure.resourcemanager.postgresqlflexibleserver.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.LtrPreBackupResponseProperties;
import org.junit.jupiter.api.Assertions;

public final class LtrPreBackupResponsePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LtrPreBackupResponseProperties model =
            BinaryData.fromString("{\"numberOfContainers\":316909853}").toObject(LtrPreBackupResponseProperties.class);
        Assertions.assertEquals(316909853, model.numberOfContainers());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LtrPreBackupResponseProperties model = new LtrPreBackupResponseProperties().withNumberOfContainers(316909853);
        model = BinaryData.fromObject(model).toObject(LtrPreBackupResponseProperties.class);
        Assertions.assertEquals(316909853, model.numberOfContainers());
    }
}
