BlockingEventResponseHandler handler = new BlockingEventResponseHandler();
client.registerForEvent( key, true, handler );
Thread.sleep( 3000 );
taskSession.taskOperation( Operation.Claim, taskId, users.get( "darth" ).getId(), null, null, null );
handler.waitTillDone( 5000 );
Payload payload = handler.getPayload();
TaskUserEvent event = ( TaskUserEvent ) payload.get();
assertNotNull( event );
}