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

package com.azure.resourcemanager.devcenter.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devcenter.models.ImageVersionListResult;

public final class ImageVersionListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ImageVersionListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"name\":\"xdpnqbqq\",\"publishedDate\":\"2021-06-06T00:18:07Z\",\"excludeFromLatest\":true,\"osDiskImageSizeInGb\":1993000932,\"provisioningState\":\"Deleted\"},\"id\":\"sub\",\"name\":\"snjampmng\",\"type\":\"zscxaqwo\"},{\"properties\":{\"name\":\"cbonqvpk\",\"publishedDate\":\"2021-04-29T10:14:13Z\",\"excludeFromLatest\":true,\"osDiskImageSizeInGb\":396203358,\"provisioningState\":\"Updating\"},\"id\":\"ipheoflokeyyien\",\"name\":\"bdlwtgrhpdjpj\",\"type\":\"masxazjpqyegu\"}],\"nextLink\":\"hb\"}")
                .toObject(ImageVersionListResult.class);
    }

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