### Question:
DownloadCache { void setUserCanceled() { this.userCanceled = true; } 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 setUserCanceled() throws Exception { assertThat(cache.isInterrupt()).isFalse(); assertThat(cache.isUserCanceled()).isFalse(); cache.setUserCanceled(); assertThat(cache.isUserCanceled()).isTrue(); assertThat(cache.isInterrupt()).isTrue(); }