To improve the readability of the test, I removed the unnecessary if (responseMessage.toolCalls() != null)
check
The if statement is redundant and will always evaluate to true, since assertThat(responseMessage.toolCalls()).isNotNull()
ensures that toolCalls()
is not null.