// File generated from our OpenAPI spec by Stainless.

package com.openai.models.admin.organization.certificates

import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class CertificateUpdateParamsTest {

    @Test
    fun create() {
        CertificateUpdateParams.builder().certificateId("certificate_id").name("name").build()
    }

    @Test
    fun pathParams() {
        val params = CertificateUpdateParams.builder().certificateId("certificate_id").build()

        assertThat(params._pathParam(0)).isEqualTo("certificate_id")
        // out-of-bound path param
        assertThat(params._pathParam(1)).isEqualTo("")
    }

    @Test
    fun body() {
        val params =
            CertificateUpdateParams.builder().certificateId("certificate_id").name("name").build()

        val body = params._body()

        assertThat(body.name()).contains("name")
    }

    @Test
    fun bodyWithoutOptionalFields() {
        val params = CertificateUpdateParams.builder().certificateId("certificate_id").build()

        val body = params._body()
    }
}
