long delay = waitingDelay / 3 + 10L;
PublisherThread pubThread = new PublisherThread(this.glob, delay, msgs);
// query with a given GetQos ...
GetQos getQos = new GetQos(this.glob);
QuerySpecQos querySpecQos = new QuerySpecQos(this.glob, "QueueQuery", "1.0", "maxEntries=" + maxEntries + "&maxSize=-1&consumable=" + consumable + "&waitingDelay=" + waitingDelay);
getQos.addQuerySpec(querySpecQos);
String getOid = "__cmd:client/" + this.sessionName + "/?cbQueueEntries";
MsgUnit[] mu = this.glob.getXmlBlasterAccess().get(new GetKey(this.glob, getOid), getQos);
assertEquals("an exception occured when it should not", false, pubThread.hasException());
assertEquals("wrong number of retreived entries", entriesExpected, mu.length);