### Question:
ConnectTrial { public int getResponseCode() { return responseCode; } ConnectTrial(@NonNull DownloadTask task, @NonNull BreakpointInfo info); void executeTrial(); long getInstanceLength(); boolean isAcceptRange(); boolean isChunked(); @Nullable String getResponseEtag(); @Nullable String getResponseFilename(); int getResponseCode(); boolean isEtagOverdue();  }### Answer:
@Test public void getResponseCode() throws Exception { when(connected.getResponseCode()).thenReturn(1); connectTrial.executeTrial(); assertThat(connectTrial.getResponseCode()).isEqualTo(1); }