// File generated from our OpenAPI spec by Stainless.

package com.increase.api.services.blocking.simulations

import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClient
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 ExportServiceTest {

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

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

        export.validate()
    }
}
