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

package com.azure.resourcemanager.mariadb.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mariadb.fluent.models.RecoverableServerResourceInner;

public final class RecoverableServerResourceInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RecoverableServerResourceInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"lastAvailableBackupDateTime\":\"exfwhy\",\"serviceLevelObjective\":\"i\",\"edition\":\"yvdcsitynnaa\",\"vCore\":1553066482,\"hardwareGeneration\":\"tehfiqscjeypvh\",\"version\":\"rkgqhcjrefo\"},\"id\":\"gm\",\"name\":\"qsl\",\"type\":\"yyvxyqjpkcattpn\"}")
                .toObject(RecoverableServerResourceInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RecoverableServerResourceInner model = new RecoverableServerResourceInner();
        model = BinaryData.fromObject(model).toObject(RecoverableServerResourceInner.class);
    }
}
