IIndexService indexService = IndexPlugin.getDefault().getIndexService();
loadLogFile("sample-1.log.xml");
createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
indexService.synchronize(getLogResource(), null);
assertEquals(5, indexService.count(getLogResource()));
indexService.truncate(getLogResource());
assertEquals(0, indexService.count(getLogResource()));
} catch (Exception e) {
getLogger().error(e.getLocalizedMessage(), e);
fail("Exception should not occur: " + e.getLocalizedMessage());
}