### Question:
MultiPointOutputStream { long getNextParkMillisecond() { long farToLastSyncMills = now() - lastSyncTimestamp.get(); return syncBufferIntervalMills - farToLastSyncMills; } 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 getNextParkMillisecond() { when(multiPointOutputStream.now()).thenReturn(2L); multiPointOutputStream.lastSyncTimestamp.set(1L); assertThat(multiPointOutputStream.getNextParkMillisecond()).isEqualTo(-1L); }