@Test
public void tripleCacheMiss_networkErrorOnFirst() throws Exception {

    StringRequest secondRequest =
            new StringRequest(Request.Method.GET, "http://foo", null, null);
    StringRequest thirdRequest =
            new StringRequest(Request.Method.GET, "http://foo", null, null);
    mRequest.setSequence(1);
    secondRequest.setSequence(2);
    thirdRequest.setSequence(3);
    mDispatcher.processRequest(mRequest);
    mDispatcher.processRequest(secondRequest);
    mDispatcher.processRequest(thirdRequest);
    verify(mNetworkQueue).put(mRequest);
    verifyNoResponse(mDelivery);
    ((Request<?>) mRequest).notifyListenerResponseNotUsable();
    // Second request should now be in network queue.
    verify(mNetworkQueue).put(secondRequest);
    // Another unusable response, third request should now be added.
    ((Request<?>) secondRequest).notifyListenerResponseNotUsable();
    verify(mNetworkQueue).put(thirdRequest);
}