@Test
  public void testDrainageForNullResourceIdOnly() {
    doAnswer((Answer<Void>) invocation -> {
      List<RequestInfo> requestsToSend = (List<RequestInfo>) invocation.getArguments()[0];
      requestsToSend.add(
          new RequestInfo(HOST, PORT, SEND, REPLICA_ID, new TestChargeable(QuotaAction.ALLOW, null, quotaMethod)));
      return null;
    }).when(putManager).poll(requestsToSend, requestsToDrop);
    quotaAwareOperationController.pollForRequests(requestsToSend, requestsToDrop);
    assertEquals(0, quotaAwareOperationController.getRequestQueue(quotaMethod).size());
  }
Constructor for {@link QuotaAwareOperationControllerTest}.
@param quotaMethod {@link QuotaMethod} to use for the test run.
ambry-router/src/test/java/com/github/ambry/router/QuotaAwareOperationControllerTest.java