assertThat(actual).isEqualTo(expected); assertThat(actual).contains(expected); assertThatThrownBy(() -> { // code block that should throw an exception }).isInstanceOf(expectedExceptionClass);