### Question:
DownloadCache { public void setServerCanceled(IOException realCause) { this.serverCanceled = true; this.realCause = realCause; } DownloadCache(@NonNull MultiPointOutputStream outputStream); private  DownloadCache(); boolean isUserCanceled(); boolean isPreAllocateFailed(); boolean isInterrupt(); void setPreconditionFailed(IOException realCause); void setFileBusyAfterRun(); void setServerCanceled(IOException realCause); void setUnknownError(IOException realCause); void setPreAllocateFailed(IOException realCause); void catchException(IOException e);  }### Answer:
@Test public void setServerCanceled() throws Exception { assertThat(cache.isInterrupt()).isFalse(); cache.setServerCanceled(realCause); assertThat(cache.isInterrupt()).isTrue(); }