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

package com.azure.resourcemanager.costmanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.costmanagement.models.DimensionsListResult;

public final class DimensionsListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DimensionsListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"description\":\"zjf\",\"filterEnabled\":false,\"groupingEnabled\":true,\"data\":[],\"total\":1757404890,\"category\":\"vetvt\",\"usageStart\":\"2021-04-09T14:12:32Z\",\"usageEnd\":\"2021-10-28T02:56:06Z\",\"nextLink\":\"oqmcbxvwvxyslq\"},\"sku\":\"sfxobl\",\"eTag\":\"k\",\"location\":\"lmpewwwfbkr\",\"tags\":{\"rsbfovasrruvw\":\"svshqjohx\"},\"id\":\"hsqfsubcgjbirxbp\",\"name\":\"bsrfbj\",\"type\":\"dtws\"},{\"properties\":{\"description\":\"ftpvjzbexil\",\"filterEnabled\":false,\"groupingEnabled\":false,\"data\":[],\"total\":956114198,\"category\":\"pmqtaru\",\"usageStart\":\"2021-01-05T00:17:26Z\",\"usageEnd\":\"2021-06-05T09:26:58Z\",\"nextLink\":\"jhwqytjrybnw\"},\"sku\":\"wgdrjervnaenqp\",\"eTag\":\"indoygmifthnzd\",\"location\":\"dslgnayqigynduh\",\"tags\":{\"maqolbgycduie\":\"qlkth\",\"qlfmmdnbb\":\"tgccymvaolpss\",\"wyhzdx\":\"lzpswiydm\"},\"id\":\"sadbz\",\"name\":\"nvdfznuda\",\"type\":\"dvxzbncblylpst\"}]}")
                .toObject(DimensionsListResult.class);
    }

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