### Question:
ResumeFailedException extends IOException { public ResumeFailedCause getResumeFailedCause() { return resumeFailedCause; } ResumeFailedException(ResumeFailedCause cause); ResumeFailedCause getResumeFailedCause();  }### Answer:
@Test public void construct() { final ResumeFailedCause cause = ResumeFailedCause.FILE_NOT_EXIST; ResumeFailedException exception = new ResumeFailedException(cause); assertThat(exception.getMessage()).isEqualTo("Resume failed because of " + cause); assertThat(exception.getResumeFailedCause()).isEqualTo(cause); }