// File generated from our OpenAPI spec by Stainless.

package com.increase.api.services.async.simulations

import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClientAsync
import com.increase.api.models.simulations.exports.ExportCreateParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

@ExtendWith(TestServerExtension::class)
internal class ExportServiceAsyncTest {

    @Test
    fun create() {
        val client =
            IncreaseOkHttpClientAsync.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val exportServiceAsync = client.simulations().exports()

        val exportFuture =
            exportServiceAsync.create(
                ExportCreateParams.builder()
                    .category(ExportCreateParams.Category.FORM_1099_INT)
                    .form1099Int(
                        ExportCreateParams.Form1099Int.builder()
                            .accountId("account_in71c4amph0vgo2qllky")
                            .build()
                    )
                    .build()
            )

        val export = exportFuture.get()
        export.validate()
    }
}
