}
private void assertContentForQueue(String queueName, int expectedQueueSize, final Set<Long> messageIdsForQueue)
{
final AtomicInteger contentCounter = new AtomicInteger();
final MessageContentKeyBinding keyBinding = new MessageContentKeyBinding();
CursorOperation cursorOperation = new CursorOperation()
{
private long _prevMsgId = -1;
@Override
public void processEntry(Database sourceDatabase, Database targetDatabase, Transaction transaction,
DatabaseEntry key, DatabaseEntry value)
{
MessageContentKey contentKey = keyBinding.entryToObject(key);
long msgId = contentKey.getMessageId();
if (_prevMsgId != msgId && messageIdsForQueue.contains(msgId))
{
contentCounter.incrementAndGet();