}
public void testErrorsAreIssuedWhenRequestHitRequestLimit() {
List<WardenXhrRequest> requests = createMultipleRequests(TEST_ERROR_LIMIT, 2, 2);
WardenXhrRequest killedRequest = createRequest(1, 1);
killedRequest.kill();
replay(killedRequest);
// Mock up listener behavior
listener.onWarning(warden);
listener.onEmergency(warden, killedRequest);