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

package com.azure.developer.devcenter.generated;

import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public final class DevBoxesListUpcomingActionsTests extends DevCenterClientTestBase {
    @Test
    @Disabled
    public void testDevBoxesListUpcomingActionsTests() {
        RequestOptions requestOptions = new RequestOptions();
        PagedIterable<BinaryData> response =
                devBoxesClient.listUpcomingActions("myProject", "me", "myDevBox", requestOptions);
        Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode());
        Assertions.assertEquals(
                BinaryData.fromString(
                                "{\"actionType\":\"StopDevBox\",\"id\":\"cae4d1f4-94b8-75f2-406d-5f00ae4c1da7\",\"originalScheduledTime\":\"2021-09-30T12:00:00Z\",\"reason\":\"Schedule\",\"scheduledTime\":\"2022-09-30T17:00:00Z\",\"sourceId\":\"/projects/myProject/pools/myPool/schedules/mySchedule\"}")
                        .toObject(Object.class),
                response.iterator().next().toObject(Object.class));
    }
}
