public void testConcurrentRequests() throws Exception {
final int WORKERS = 100;
final int MESSAGE_COUNT=10;
final CyclicBarrier barrier = new CyclicBarrier(WORKERS);
for( int i=0; i < WORKERS; i++ ) {
new Thread() {
/**
* @see java.lang.Thread#run()
*/
public void run() {
try {
String text = "Hello World";
MarshalledObject object = client.createMarshalledObject();
object.set(text);
Msg msg = client.createMsg();
msg.pushMarshaledObject(object);
barrier.barrier();
for(int i=0; i < MESSAGE_COUNT; i++ )
client.sendRequest(connectURI,msg);