// This will cause another log to the listener
warden.onRequestOpening(requests.get(TEST_WARNING_LIMIT - 1));
warden.onRequestOpen(requests.get(TEST_WARNING_LIMIT - 1));
// This should not trigger another warning since we are still over the limit
WardenXhrRequest lastRequest = createRequest(TEST_WARNING_LIMIT, TEST_WARNING_LIMIT);
replay(lastRequest);
warden.onRequestOpen(lastRequest);
assertEquals(TEST_WARNING_LIMIT, warden.getRequestCount());
verify(listener);