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

package com.azure.resourcemanager.dataprotection.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.dataprotection.models.DeleteOption;
import org.junit.jupiter.api.Assertions;

public final class DeleteOptionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DeleteOption model =
            BinaryData
                .fromString("{\"objectType\":\"DeleteOption\",\"duration\":\"hdgqggeb\"}")
                .toObject(DeleteOption.class);
        Assertions.assertEquals("hdgqggeb", model.duration());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DeleteOption model = new DeleteOption().withDuration("hdgqggeb");
        model = BinaryData.fromObject(model).toObject(DeleteOption.class);
        Assertions.assertEquals("hdgqggeb", model.duration());
    }
}
