}
private class RequestScopeTestThread extends Thread {
public void run() {
StateVerifier requestScopeService = node.getService(StateVerifier.class, "RequestScopeComponent");
for (int i = 1; i <= ITERATIONS; i++) {
requestScopeService.setState(i);
if (!requestScopeService.checkState(i)) {
fail("The request scope service lost its state on iteration " + i);
}
}
}