### Question:
StatusUtil { @Nullable public static BreakpointInfo getCurrentInfo(@NonNull String url, @NonNull String parentPath, @Nullable String filename) { return getCurrentInfo(createFinder(url, parentPath, filename)); }  static boolean isSameTaskPendingOrRunning(@NonNull DownloadTask task); static Status getStatus(@NonNull DownloadTask task); static Status getStatus(@NonNull String url, @NonNull String parentPath,
                                   @Nullable String filename); static boolean isCompleted(@NonNull DownloadTask task); static Status isCompletedOrUnknown(@NonNull DownloadTask task); static boolean isCompleted(@NonNull String url, @NonNull String parentPath,
                                      @Nullable String filename); @Nullable static BreakpointInfo getCurrentInfo(@NonNull String url,
                                                          @NonNull String parentPath,
                                                          @Nullable String filename); @Nullable static BreakpointInfo getCurrentInfo(@NonNull DownloadTask task);  }### Answer:
@Test public void getCurrentInfo() { final BreakpointStore store = OkDownload.with().breakpointStore(); final BreakpointInfo origin = mock(BreakpointInfo.class); doReturn(origin).when(store).get(anyInt()); StatusUtil.getCurrentInfo(mock(DownloadTask.class)); verify(origin).copy(); }
@Test public void getCurrentInfo_urlParentPathFilename() { final BreakpointStore store = OkDownload.with().breakpointStore(); final BreakpointInfo origin = mock(BreakpointInfo.class); doReturn(origin).when(store).get(anyInt()); StatusUtil.getCurrentInfo("https: verify(origin).copy(); }