### Question:
ErrorHandling { void handleErrorByThrowingAnyCheckedExceptionWithDetailMessage(String message) { throw new UnsupportedOperationException("Delete this statement and write your own implementation."); }    }### Answer:
@Ignore("Remove to run test") @Test public void testThrowAnyCheckedExceptionWithDetailMessage() { Exception expected = assertThrows( Exception.class, () -> errorHandling .handleErrorByThrowingAnyCheckedExceptionWithDetailMessage( "This is the detail message.")); assertThat(expected).isNotInstanceOf(RuntimeException.class); assertThat(expected).hasMessage("This is the detail message."); }