// File generated from our OpenAPI spec by Stainless.

package com.openai.models.responses

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

class ResponseTextAnnotationDeltaEventTest {

    @Test
    fun createResponseTextAnnotationDeltaEvent() {
        val responseTextAnnotationDeltaEvent =
            ResponseTextAnnotationDeltaEvent.builder()
                .annotation(
                    ResponseTextAnnotationDeltaEvent.Annotation.FileCitation.builder()
                        .fileId("file_id")
                        .index(0L)
                        .build()
                )
                .annotationIndex(0L)
                .contentIndex(0L)
                .itemId("item_id")
                .outputIndex(0L)
                .build()
        assertThat(responseTextAnnotationDeltaEvent).isNotNull
        assertThat(responseTextAnnotationDeltaEvent.annotation())
            .isEqualTo(
                ResponseTextAnnotationDeltaEvent.Annotation.ofFileCitation(
                    ResponseTextAnnotationDeltaEvent.Annotation.FileCitation.builder()
                        .fileId("file_id")
                        .index(0L)
                        .build()
                )
            )
        assertThat(responseTextAnnotationDeltaEvent.annotationIndex()).isEqualTo(0L)
        assertThat(responseTextAnnotationDeltaEvent.contentIndex()).isEqualTo(0L)
        assertThat(responseTextAnnotationDeltaEvent.itemId()).isEqualTo("item_id")
        assertThat(responseTextAnnotationDeltaEvent.outputIndex()).isEqualTo(0L)
    }
}
