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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.models.RestorePointListResult;

public final class RestorePointListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RestorePointListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"location\":\"xmedjvcsly\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-06-18T01:03:59Z\",\"restorePointCreationDate\":\"2021-02-16T11:10:06Z\",\"restorePointLabel\":\"hxg\"},\"id\":\"trmgucnapkte\",\"name\":\"ellwptfdy\",\"type\":\"pfqbuaceopzf\"},{\"location\":\"hhuao\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-06-20T04:26:50Z\",\"restorePointCreationDate\":\"2021-08-17T00:04:54Z\",\"restorePointLabel\":\"lzdahzxctobgbkdm\"},\"id\":\"izpost\",\"name\":\"grcfb\",\"type\":\"nrmfqjhhk\"},{\"location\":\"pvjymjhxxjyng\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-03-03T06:08:52Z\",\"restorePointCreationDate\":\"2021-05-11T10:46:47Z\",\"restorePointLabel\":\"bxqz\"},\"id\":\"szjfauvjfdxxivet\",\"name\":\"t\",\"type\":\"qaqtdoqmcbxvwvxy\"},{\"location\":\"qbhsfxobl\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-11-17T19:10:27Z\",\"restorePointCreationDate\":\"2021-08-02T07:01:05Z\",\"restorePointLabel\":\"wwfbkrvrnsvshq\"},\"id\":\"ohxcrsbfova\",\"name\":\"rruvwbhsq\",\"type\":\"sub\"}],\"nextLink\":\"jbi\"}")
                .toObject(RestorePointListResult.class);
    }

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