builder.addWorkToQueue( SpecialPerson.class, person, 1, WorkType.ADD, queue, searchFactory );
assertEquals("There should only be one job in the queue", 1, queue.size());
assertTrue("Wrong job type", queue.get(0) instanceof AddLuceneWork );
builder.addWorkToQueue( SpecialPerson.class, person, 1, WorkType.DELETE, queue, searchFactory );
assertEquals("There should only be one job in the queue", 1, queue.size());
assertTrue("Wrong job type. Add job should have been replaced by delete.", queue.get(0) instanceof DeleteLuceneWork );
fullTextSession.close();