RequestManager { public void makeRequest(@NonNull T requestFactory, @NonNull BackoffPolicy backoffPolicy) { Preconditions.checkNotNull(requestFactory); Preconditions.checkNotNull(backoffPolicy); cancelRequest(); mRequestFactory = requestFactory; mBackoffPolicy = backoffPolicy; makeRequestInternal(); } RequestManager(@NonNull Looper looper); boolean isAtCapacity(); void makeRequest(@NonNull T requestFactory, @NonNull BackoffPolicy backoffPolicy); void cancelRequest();  }
@Test public void makeRequest_shouldAddRequestToQueue() throws Exception { subject.makeRequest(mockScribeRequestFactory, mockScribeBackoffPolicy); verify(mockRequestQueue).add(mockScribeRequest); }