// 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 ModerationImageUrlInputTest {

    @Test
    fun createModerationImageUrlInput() {
        val moderationImageUrlInput =
            ModerationImageUrlInput.builder()
                .imageUrl(
                    ModerationImageUrlInput.ImageUrl.builder()
                        .url("https://example.com/image.jpg")
                        .build()
                )
                .type(ModerationImageUrlInput.Type.IMAGE_URL)
                .build()
        assertThat(moderationImageUrlInput).isNotNull
        assertThat(moderationImageUrlInput.imageUrl())
            .isEqualTo(
                ModerationImageUrlInput.ImageUrl.builder()
                    .url("https://example.com/image.jpg")
                    .build()
            )
        assertThat(moderationImageUrlInput.type()).isEqualTo(ModerationImageUrlInput.Type.IMAGE_URL)
    }
}
