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

package com.azure.resourcemanager.billing.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.billing.models.InstructionListResult;

public final class InstructionListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        InstructionListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"amount\":14.028668,\"startDate\":\"2021-02-05T11:01:53Z\",\"endDate\":\"2021-08-09T18:56:36Z\",\"creationDate\":\"2021-10-09T04:22:59Z\"},\"id\":\"yhxdeoejzicwi\",\"name\":\"sjttgzfbish\",\"type\":\"bkh\"},{\"properties\":{\"amount\":99.54184,\"startDate\":\"2021-05-05T10:08:59Z\",\"endDate\":\"2021-10-22T18:26:04Z\",\"creationDate\":\"2021-07-28T01:41:30Z\"},\"id\":\"md\",\"name\":\"hagalpbuxwgipwh\",\"type\":\"nowkgshw\"},{\"properties\":{\"amount\":13.87347,\"startDate\":\"2021-02-10T18:27Z\",\"endDate\":\"2021-05-09T01:51:01Z\",\"creationDate\":\"2021-05-05T18:01:17Z\"},\"id\":\"njeputtmrywn\",\"name\":\"zoqftiyqzrnkcqvy\",\"type\":\"lwh\"},{\"properties\":{\"amount\":81.865715,\"startDate\":\"2021-07-23T19:47:42Z\",\"endDate\":\"2021-07-17T17:56:48Z\",\"creationDate\":\"2021-12-09T22:32:32Z\"},\"id\":\"oqqnwvlryav\",\"name\":\"hheunmmqhgyx\",\"type\":\"konocu\"}],\"nextLink\":\"klyaxuconu\"}")
                .toObject(InstructionListResult.class);
    }

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