// File generated from our OpenAPI spec by Stainless.

package com.openai.models

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

class FilePathDeltaAnnotationTest {

    @Test
    fun createFilePathDeltaAnnotation() {
        val filePathDeltaAnnotation =
            FilePathDeltaAnnotation.builder()
                .index(0L)
                .endIndex(0L)
                .filePath(FilePathDeltaAnnotation.FilePath.builder().fileId("file_id").build())
                .startIndex(0L)
                .text("text")
                .build()
        assertThat(filePathDeltaAnnotation).isNotNull
        assertThat(filePathDeltaAnnotation.index()).isEqualTo(0L)
        assertThat(filePathDeltaAnnotation.endIndex()).contains(0L)
        assertThat(filePathDeltaAnnotation.filePath())
            .contains(FilePathDeltaAnnotation.FilePath.builder().fileId("file_id").build())
        assertThat(filePathDeltaAnnotation.startIndex()).contains(0L)
        assertThat(filePathDeltaAnnotation.text()).contains("text")
    }
}
