// 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.ViewListResult;

public final class ViewListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ViewListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"displayName\":\"ccsnhsjc\",\"scope\":\"ejhkry\",\"createdOn\":\"2021-03-30T08:32:11Z\",\"modifiedOn\":\"2021-11-17T21:53:26Z\",\"dateRange\":\"zw\",\"currency\":\"kjyemkk\",\"chart\":\"Area\",\"accumulated\":\"false\",\"metric\":\"AHUB\",\"kpis\":[],\"pivots\":[]},\"eTag\":\"hgejspodma\",\"id\":\"lzydehojwyahux\",\"name\":\"npmqnjaqwixjspro\",\"type\":\"vcputegj\"},{\"properties\":{\"displayName\":\"fdatsc\",\"scope\":\"vpjhulsuuv\",\"createdOn\":\"2021-07-02T09:33:18Z\",\"modifiedOn\":\"2021-09-20T02:03:10Z\",\"dateRange\":\"rwfndiod\",\"currency\":\"slwejdpvw\",\"chart\":\"StackedColumn\",\"accumulated\":\"false\",\"metric\":\"AmortizedCost\",\"kpis\":[],\"pivots\":[]},\"eTag\":\"azakl\",\"id\":\"lahbcryff\",\"name\":\"fdosyg\",\"type\":\"xpaojakhmsbz\"},{\"properties\":{\"displayName\":\"rzevdphlxaol\",\"scope\":\"qtrgqjbpfzfsinzg\",\"createdOn\":\"2021-07-30T11:45:35Z\",\"modifiedOn\":\"2021-02-14T20:28:05Z\",\"dateRange\":\"zoxxjtf\",\"currency\":\"luwfzitonpeqfpjk\",\"chart\":\"Table\",\"accumulated\":\"false\",\"metric\":\"ActualCost\",\"kpis\":[],\"pivots\":[]},\"eTag\":\"xxypininmay\",\"id\":\"uybbkpodep\",\"name\":\"oginuvamiheognar\",\"type\":\"zxtheotusivyevcc\"}],\"nextLink\":\"ihnhun\"}")
                .toObject(ViewListResult.class);
    }

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