* Test method for 'org.apache.lucene.gdata.storage.lucenestorage.StorageBuffer.getSortedEntries(String)'
*/
public void testGetSortedEntries() throws IOException, InterruptedException {
assertNull(this.buffer.getSortedEntries(FEEDID));
ServerBaseEntry e = createServerBaseEntry("2",FEEDID);
e.setUpdated(new DateTime(System.currentTimeMillis()-200,0));
StorageEntryWrapper wrapper = new StorageEntryWrapper(e,StorageOperation.INSERT);
this.buffer.addEntry(wrapper);
e.setId("0");
// force timestamp
e.setUpdated(new DateTime(System.currentTimeMillis()-180,0));
wrapper = new StorageEntryWrapper(e,StorageOperation.INSERT);
this.buffer.addEntry(wrapper);
e.setId("1");
// force timestamp
e.setUpdated(new DateTime(System.currentTimeMillis()-160,0));
wrapper = new StorageEntryWrapper(e,StorageOperation.INSERT);
this.buffer.addEntry(wrapper);
e.setId("0");
// force timestamp
e.setUpdated(new DateTime(System.currentTimeMillis()-140,0));
wrapper = new StorageEntryWrapper(e,StorageOperation.UPDATE);
this.buffer.addEntry(wrapper);
// force timestamp
e.setUpdated(new DateTime(System.currentTimeMillis()-120,0));
wrapper = new StorageEntryWrapper(e,StorageOperation.DELETE);
this.buffer.addEntry(wrapper);
List<StorageEntryWrapper> list = this.buffer.getSortedEntries(FEEDID);
assertEquals(3,list.size());
for (int i = 0; i < 3; i++) {