Kotlin, Kotest, Property Based Testing.
listOf( InputPositionDto( name = "First Position", value = 2.3 ), InputPositionDto( name = "Second Position", value = -12.2 ) ) ) // when + then val exception = shouldThrow<IllegalArgumentException> { applicationService.createOutput(inputDto) } exception.message shouldBe "Sum of positions amount