### Question:
MultiPointOutputStream { boolean isNoNeedFlushForLength() { return allNoSyncLength.get() < syncBufferSize; } MultiPointOutputStream(@NonNull final DownloadTask task,
                           @NonNull BreakpointInfo info,
                           @NonNull DownloadStore store,
                           @Nullable Runnable syncRunnable);  MultiPointOutputStream(@NonNull DownloadTask task,
                                  @NonNull BreakpointInfo info,
                                  @NonNull DownloadStore store); synchronized void write(int blockIndex, byte[] bytes, int length); void cancelAsync(); synchronized void cancel(); void done(int blockIndex); void inspectComplete(int blockIndex); void setRequireStreamBlocks(List<Integer> requireStreamBlocks); void catchBlockConnectException(int blockIndex);  }### Answer:
@Test public void isNoNeedFlushForLength() { multiPointOutputStream.allNoSyncLength.set(0); assertThat(multiPointOutputStream.isNoNeedFlushForLength()).isFalse(); multiPointOutputStream.allNoSyncLength.set(-1); assertThat(multiPointOutputStream.isNoNeedFlushForLength()).isTrue(); }