results = queue.dequeueAll();
assertEquals( 7, results.length );
assertEquals( 0, queue.size() );
PreparedEnqueue prep = queue.prepareEnqueue( elements );
assertEquals( 10, queue.size() );
prep.abort();
assertEquals( 0, queue.size() );
prep = queue.prepareEnqueue( elements );
assertEquals( 10, queue.size() );
prep.commit();
assertEquals( 10, queue.size() );
results = queue.dequeue( queue.size() );
assertEquals( 0, queue.size() );
}