using java concurrency to sync jetty with test task