public void testCreateAndDelete() {
try {
IIndexService indexService = IndexPlugin.getDefault().getIndexService();
loadLogFile("sample-1.log.xml");
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());