assertj assertthrows code example Example: assertThrows syntax assertThrows(classOf[UnsupportedOperationException], () => ...)