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

public final class RecoveryPointPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RecoveryPointProperties model =
            BinaryData
                .fromString("{\"expiryTime\":\"huwrykqgaifm\",\"ruleName\":\"klbydv\",\"isSoftDeleted\":true}")
                .toObject(RecoveryPointProperties.class);
        Assertions.assertEquals("huwrykqgaifm", model.expiryTime());
        Assertions.assertEquals("klbydv", model.ruleName());
        Assertions.assertEquals(true, model.isSoftDeleted());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RecoveryPointProperties model =
            new RecoveryPointProperties().withExpiryTime("huwrykqgaifm").withRuleName("klbydv").withIsSoftDeleted(true);
        model = BinaryData.fromObject(model).toObject(RecoveryPointProperties.class);
        Assertions.assertEquals("huwrykqgaifm", model.expiryTime());
        Assertions.assertEquals("klbydv", model.ruleName());
        Assertions.assertEquals(true, model.isSoftDeleted());
    }
}
