What is the difference between assertThatCode(…).isInstanceOf(…) and assertThatThrownBy(…).isInstanceOf(…)?
Both seem to work the same, to the point where assertThatThrownBy() allows you to chain doesNotThrowAnyException() too (which is a bit funny).