For void methods, I think you need to use the doThrow syntax.
So in your case it would be:
doThrow(BookingException.builder().build())
.when(booking)
.validate(any());
For void methods, I think you need to use the doThrow syntax.
So in your case it would be:
doThrow(BookingException.builder().build())
.when(booking)
.validate(any());