### Question:
RequestLoader extends Loader<D> { @Override protected void onStopLoading() { dispatchedRequest.cancel(); handler.removeCallbacks(sender); super.onStopLoading(); } RequestLoader(@NonNull final Context context, @NonNull final Request<D> request,
			@NonNull final RequestQueue queue); void setUpdateThrottle(final long delayMS); @Override String toString();  }### Answer:
@Test public void testOnStopLoading() { final ArgumentCaptor<Request> captor = ArgumentCaptor.forClass(Request.class); loader.onForceLoad(); verify(requestQueue).add(captor.capture()); loader.onStopLoading(); assertTrue("Failed to cancel request", captor.getValue().isCanceled()); }