### Question:
BreakpointRemoteCheck { boolean isTrialSpecialPass(int responseCode, long instanceLength, boolean isResumable) { if (responseCode == RANGE_NOT_SATISFIABLE && instanceLength >= 0 && isResumable) { return true; } return false; } BreakpointRemoteCheck(@NonNull DownloadTask task,
                                 @NonNull BreakpointInfo info); @Override String toString(); @Nullable ResumeFailedCause getCause(); @NonNull ResumeFailedCause getCauseOrThrow(); boolean isResumable(); boolean isAcceptRange(); long getInstanceLength(); void check();  }### Answer:
@Test public void isTrialSpecialPass() { assertThat(check.isTrialSpecialPass(RANGE_NOT_SATISFIABLE, 0, true)).isTrue(); assertThat(check.isTrialSpecialPass(RANGE_NOT_SATISFIABLE, -1, true)).isFalse(); assertThat(check.isTrialSpecialPass(RANGE_NOT_SATISFIABLE, 0, false)).isFalse(); assertThat(check.isTrialSpecialPass(RANGE_NOT_SATISFIABLE, -1, false)).isFalse(); assertThat(check.isTrialSpecialPass(HttpURLConnection.HTTP_PARTIAL, 0, true)).isFalse(); }