hive.directory().insertPrimaryIndexKey(asia.getName());
interceptor.postFlush(Arrays.asList(new Object[]{report,asia}).iterator());
assertTrue(hive.directory().doesPrimaryIndexKeyExist(report.getContinent()));
assertTrue(hive.directory().doesResourceIdExist("WeatherReport", report.getReportId()));
assertTrue(hive.directory().doesResourceIdExist("Temperature", report.getTemperature()));
assertTrue(hive.directory().doesPrimaryIndexKeyExist(asia.getName()));
assertTrue(hive.directory().doesSecondaryIndexKeyExist("Continent", "population", asia.getPopulation(), asia.getName()));
interceptor.onDelete(report, null, null, null, null);