### Question:
CallServerInterceptor implements Interceptor.Connect { @NonNull @Override public DownloadConnection.Connected interceptConnect(DownloadChain chain) throws IOException { OkDownload.with().downloadStrategy().inspectNetworkOnWifi(chain.getTask()); OkDownload.with().downloadStrategy().inspectNetworkAvailable(); return chain.getConnectionOrCreate().execute(); }  @NonNull @Override DownloadConnection.Connected interceptConnect(DownloadChain chain);  }### Answer:
@Test public void interceptConnect() throws Exception { serverInterceptor.interceptConnect(chain); final DownloadStrategy downloadStrategy = OkDownload.with().downloadStrategy(); verify(downloadStrategy).inspectNetworkOnWifi(eq(task)); verify(downloadStrategy).inspectNetworkAvailable(); }