createLogResource("UTF-8", Locale.getDefault(), getTimeZone());
indexService.createIndex(getLogResource());
indexService.synchronize(getLogResource(), null);
assertTrue(IndexPlugin.getDefault().getIndexFile(getLogResource()).exists());
assertEquals(5, indexService.count(getLogResource()));
indexService.deleteIndex(getLogResource());
assertTrue(!IndexPlugin.getDefault().getIndexFile(getLogResource()).exists());
} catch (Exception e) {
getLogger().error(e.getLocalizedMessage(), e);
fail("Exception should not occur: " + e.getLocalizedMessage());
}