### Question:
DownloadCall extends NamedRunnable implements Comparable<DownloadCall> { void assembleBlockAndCallbackFromBeginning(@NonNull BreakpointInfo info, @NonNull BreakpointRemoteCheck remoteCheck, @NonNull ResumeFailedCause failedCause) { Util.assembleBlock(task, info, remoteCheck.getInstanceLength(), remoteCheck.isAcceptRange()); OkDownload.with().callbackDispatcher().dispatch() .downloadFromBeginning(task, info, failedCause); } private  DownloadCall(DownloadTask task, boolean asyncExecuted, @NonNull DownloadStore store);   DownloadCall(DownloadTask task, boolean asyncExecuted,
                 @NonNull ArrayList<DownloadChain> runningBlockList,
                 @NonNull DownloadStore store); static DownloadCall create(DownloadTask task, boolean asyncExecuted,
                                      @NonNull DownloadStore store); boolean cancel(); boolean isCanceled(); boolean isFinishing(); @Override void execute(); boolean equalsTask(@NonNull DownloadTask task); @Nullable File getFile(); @SuppressFBWarnings(value = "Eq", justification = "This special case is just for task priority") @Override int compareTo(@NonNull DownloadCall o); final DownloadTask task; final boolean asyncExecuted; }### Answer:
@Test public void assembleBlockAndCallbackFromBeginning() { final BreakpointRemoteCheck remoteCheck = mock(BreakpointRemoteCheck.class); final ResumeFailedCause failedCause = mock(ResumeFailedCause.class); call.assembleBlockAndCallbackFromBeginning(info, remoteCheck, failedCause); final DownloadListener listener = OkDownload.with().callbackDispatcher().dispatch(); verify(listener).downloadFromBeginning(eq(task), eq(info), eq(failedCause)); }